ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Conditionals
Date Mon, 28 Feb 2005 18:07:25 GMT

--- "Frank W. Zammetti" <fzlists@omnytex.com> wrote:
> Is it possible, and if so how, to do conditionals? 
> I'd like to have a way
> basically on each task to say "if property A=value1,
> then run this task,
> otherwise don't".  I'm looking through the manual
> now but haven't come
> across what seems to fit the bill.

As others have suggested, you can use ant-contrib's if
task.  However, the "Ant way" to do this is described
in the manual: 
http://ant.apache.org/manual/using.html#buildfile

HTH,
Matt

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message