Quick question:

Is there any way to set a property in ant based on a condition? For example,
say I have a boolean property named "foo".  Now I want to set a property
named "num" to 1 if foo is true or set num to 2 if foo is false.  Here is
some pseudo ant to better explain my question:

pseudobuild.xml:
...
<target name="init">
        <property name="foo" value="true"/>
        <property name="num"  if ${foo} value="1" else value="2"/>
</target>
...

Any way to do this in ant?  Thanks for any help.

-Anthony

Reply via email to