Re: conditional statements

2008-02-14 Thread Bill Rich
First I must say that Ant is not a process language it is a rules language so tasks like and do not belong in Ant. Now, is this more like what you want... X is True! X is False! Yadda... Yadda... Yadda... Fully testing this snippet is left as an exerc

Re: conditional statements

2008-02-14 Thread Robin Chaddock
[quote] ...but you must include the ant-contrib-xxx.jar file in your Ant's classpath... [/quote] It's a lot neater, and portable to other peoples configurations if the antcontrib lib jar is simply specified in the classpath attribute of the appropriate taskdef[s]. e.g. classpath="*${ant-con

Re: conditional statements

2008-02-14 Thread David Weintraub
> Sent: Thursday 14 February 2008 19:52 > > To: Ant Users List > > Subject: Re: conditional statements > > > > If you want true if/then/else, I'd recommend looking at ant-contrib > > (http://ant-contrib.sourceforge.net/) - there are some tasks > > the

Re: conditional statements

2008-02-14 Thread David Weintraub
In standard Ant, you use the task to set a property, then you can use to call a task. Yadda... Yadda... Yadda... X is True! X is False! A little complex, but that's how it's done. AntContrib (as others have pointed out) has an task:

RE: conditional statements

2008-02-14 Thread Daffin, Miles (IT)
gt; Subject: Re: conditional statements > > 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 sto

Re: conditional statements

2008-02-14 Thread Scot P. Floess
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 surm

conditional statements

2008-02-14 Thread jonese
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: [EMAIL PROTECTED