I think you have an issue with your snippet... You list retest6 and retest as properties...

Here is what I tried (note the consistent use of the property entitled retest6):


<project>
   <property  name = "confused"  value = "1"/>

   <echo> confused ${confused} </echo>

   <condition property="retest6" value="3" else="6">

       <equals arg1="${confused}" arg2="1" />

   </condition>

   <echo> retest ${retest6}</echo>
</project>

I get this:

    [echo]  confused 1
    [echo]  retest 3


If I don't set the property entitled confused (meaning it is never set), I get:

    [echo]  confused ${confused}
    [echo]  retest 6

The point is, you had a condition and set the property entitled retest6 - but you output the property entitled retest? Note no 6 in the property name...

Hope that helps...

Z W wrote:
Hi

Why is this condition failing/false when "confused" is 1 ? I just don't see
it.

<echo> confused ${confused} </echo>

<condition property="retest6" value="3" else="6">

<equals arg1="${confused}" arg2="1" />

</condition>

<echo> retest ${retest}</echo>



_recheck:
     [echo]  confused 1
     [echo]
Condition false; setting retest6 to 6
Setting project property: retest6 -> 6
Property "retest" has not been set
     [echo]  retest ${retest}
Property "retest" has not been set


--
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to