Thanks Dale. I just realise that there are really alot of places to look for ant tasks (core and add-ons).
These are the ones that I know: http://ant.apache.org/ http://ant-contrib.sourceforge.net/ http://antelope.sourceforge.net/ http://www.oopsconsultancy.com/software/xmltask.html Does anyone know of others? Any list of them out there? I know that http://ant.apache.org/projects.html has some of them, but not all... I really hope these add-ons will slowly get added to the core so I dun have to look so many places for documentation/binaries/etc Regards, Daniel -----Original Message----- From: Dale Anson [mailto:[EMAIL PROTECTED] Sent: Thursday, 17 July, 2003 1:54 AM To: Ant Users List Subject: Re: How to return values from targets? Look at the 'call', 'antfetch', and 'antcallback' tasks in antelope, antelope.sourceforge.net. These, coupled with the 'if' and 'var' tasks in the same distribution, will do almost what you're asking. It'll be more like: target A <call target="B"/> <call target="C"/> target B do stuff <call target="D"/> <if name="D_value" value="true"> do other stuff </if> target C do stuff <call target="D"/> <if name="D_value" value="true"> do other stuff </if> target D do stuff <var name="D_value" value="true"/> Dale Daniel Joshua wrote: >Hi, > >Whats the best way to return values from targets? > > >Here's my scenario in PseudoAnt: > >target A > antcall B > antcall C > >target B > do stuff > returnValue = antcall D > if (returnValue = true) then > do other stuff > >target C > do stuff > returnValue = antcall D > if (returnValue = true) then > do other stuff > >target D > do stuff > return true or false > > > >Regards, >Daniel > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
