ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Pogonyshev <p.pogonys...@finamatics.com>
Subject Re: conditional execution
Date Fri, 17 Feb 2006 16:25:51 GMT
On 17 February 2006 17:55, Matt Benson wrote:
> --- Paul Pogonyshev <p.pogonyshev@finamatics.com>
> wrote:
> 
> > On 17 February 2006 17:07, Burgess, Benjamin wrote:
> > > Ant-contrib has an "if" task which you could use.
> > > 
> > > http://ant-contrib.sourceforge.net/
> > > 
> > > However, the traditional Ant solution is to split
> > each piece of
> > > functionality into its own target, set properties
> > based on condition,
> > > and use the if / unless attributes on the targets.
> > 
> > The problem is that I'm creating a macro, I don't
> > feel like
> > repeating the logic for each of similar targets...
> > 
> 
> If you can wait to create the macro(s) until the
> condition is available for evaluation you can use
> conditional target execution to create a different
> macro depending on the result of evaluating the
> condition... ;)

Won't work since the macro determines the condition itself...

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


Mime
View raw message