Try this:

<condition  property = "location"  value = "yyy">
   <equals  arg1 = "${CONDITION}"  arg2 = "TRUE"/>
</condition>

That's assuming you are testing a property named CONDITION

Please refer to the ant doc for <target>

Chun Tat David Chu wrote:
Hi,

I'm trying to construct a condition statement in ANT, and I'm stuck.  Any
help or suggestion would be great!

What I am trying to do is to check an environmental variable, and if it is
set to "TRUE", then I want to set a field to another text.

ex. (sorry, I'm new at ANT, I'll use pseudo code to demonstrate)

STRING location = "xxx";

IF (CONDITION == TRUE)
  location = "yyy";

I really hope to achieve this using ANT straight from the box without
downloading additional libraries/plug-in

Thanks!

- dc


--
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


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

Reply via email to