ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: conditional statements
Date Thu, 14 Feb 2008 19:52:28 GMT
If you want true if/then/else, I'd recommend looking at ant-contrib 
(http://ant-contrib.sourceforge.net/) - there are some tasks there...  
One of which is if/then/else as well as switch/case

If you want to use stock Ant, you can get creative with targets.  
However, based on your posting I surmise you really want if-then-else

jonese wrote:
> How would i do something like
>
> if x = true{
>  stuff
> }else{
>  other stuff
> }
>
> in ant? basically i want to see if a property is true and if it is do
> x instructions, if it's false do y.
>
> jonese
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>   

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


Mime
View raw message