ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Anson <dan...@grafidog.com>
Subject Re: Simple if/else Condition
Date Mon, 23 Jul 2007 04:27:54 GMT
If you're not opposed to external tasks, either antcontrib 
(antcontrib.sourceforge.net) or Antelope (antelope.tigris.org) provide 
straight-up if/else tasks.

Dale


Evan J wrote:
> 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@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message