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
[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
> 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
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:
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
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
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