ant-contrib - if/then/else tâche

Je suis à l'aide de la fourmi, et j'ai un problème avec if/then/else tâche, (ant-contrib-1.0b3.jar).
Je suis en cours d'exécution quelque chose qui peut être simplifié avec build.xml ci-dessous.

Je m'attends à obtenir de "ant -Dgiv=Luke" le message

input name: Luke
should be overwritten with John except for Mark: John

mais il semble bien "donner" n'est pas remplacé à l'intérieur de if/then/else..

input name: Luke
should be overwritten with John except for Mark: Luke

Est-il en fonction du fait que je suis à l'aide est égal à la tâche avec ${giv} ?
Sinon quel est le problème dans mon code?

build.xml CODE:

<project name="Friend" default="ifthen" basedir=".">

<property name="runningLocation" location="" />
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
    <classpath>
        <pathelement location="${runningLocation}/antlib/ant-contrib-1.0b3.jar" />
    </classpath>
</taskdef>

<target name="ifthen">
<echo message="input name: ${giv}" />
<if>
    <equals arg1="${giv}" arg2="Mark" />
    <then>
    </then>
    <else>
        <property name="giv" value="John" />
    </else>
</if>
<echo message="should be overwritten with John except for Mark: ${giv}" />
</target>
</project>

OriginalL'auteur Francesco | 2011-02-25