Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Simple if/else Condition

Simple if/else Condition

2007-07-17       - By Evan J
Reply:     1     2     3     4     5     6     7     8  

Hi,

I read the documents on Condition and Available tasks and from what I
see, both tasks only set a certain property upon meeting the condition
or otherwise. What I would like to accomplish is to actually perform a
task if a condition met or else do something else. That is,

if (condition)
 perform some task, i.e. echo message="condition met"
else
 perform another task

Is there such task available in Ant 1.7?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.