On 17 February 2006 17:55, Matt Benson wrote: > --- 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... ;)
Won't work since the macro determines the condition itself... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]