Re: Macrodef and If

2011-11-08 Thread Stefan Bodewig
On 2011-11-08, Steve Amerige wrote: > I'd like to do something like: > > > > ... > > > >... > > Within the macrodef, there would be places it would return true and > other places it returns false. I want the solution to be wholly in > Ant (no Java, Groo

Re: Macrodef and If

2011-11-08 Thread Steve Amerige
Hi, Thanks for the feedback. Actually, the use of Ant-Contrib is okay. But, please note that it isn't just a property that I'd want to set. It's really the ability to look at the "return" values of a macrodef and use that result with an task. I do realize that a workaround exists in this fo

RE: Macrodef and If

2011-11-08 Thread Murray, Mike
Assuming no use of AntContrib, you can pass the name of a property to the Macrodef, which it would set. This property could then be used in an Ant condition. I'd give in and use AntContrib though, since it gives you an task. -Original Message- From: Steve Amerige [mailto:steve.amer.

Macrodef and If

2011-11-08 Thread Steve Amerige
I'd like to do something like: ... ... Within the macrodef, there would be places it would return true and other places it returns false. I want the solution to be wholly in Ant (no Java, Groovy, external file use, etc.). Is it possible? If so, can y