Feed the build.xml into <xmlproperty /> and then use the project.target.name property that results (a comma-delimited list).
-----Original Message----- From: Stefan Bernsdorf [mailto:gruener.heinr...@googlemail.com] Sent: June 07, 2012 8:23 AM To: Lewis John Mcgibbney; Ant Users List Subject: Re: Getting all targets in a Buildfile Again, sorry, my question was misleading. I am looking for a possibility to print all target names into a property and than feed a <for> task with it. thanks, Stefan. Am 07.06.2012 13:09, schrieb Lewis John Mcgibbney: > This can usually be achieved by doing ant -projecthelp which in turn > prints out targets along with a description if the target has one. > > hth > > Lewis > > On Thu, Jun 7, 2012 at 10:03 AM, Grüner Heinrich > <gruener.heinr...@googlemail.com> wrote: >> Hi ant-list, >> >> Is it possible to retrieve all targets from a buildfile? >> >> Thanks, Stefan. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org >> For additional commands, e-mail: user-h...@ant.apache.org >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org