--- Paul Pogonyshev <[EMAIL PROTECTED]>
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... ;)

see
http://wiki.apache.org/ant/NewAntFeaturesInDetail/PresetDef

third example , "It is interesting to note...".

-Matt

> OK, seems like I'll need to use some extension...
> 
> Paul
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to