You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Grüner Heinrich <gr...@googlemail.com> on 2012/06/07 11:03:59 UTC

Getting all targets in a Buildfile

Hi ant-list,

Is it possible to retrieve all targets from a buildfile?

Thanks, Stefan.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: Getting all targets in a Buildfile

Posted by "Bickford, Mark" <Ma...@WrightExpress.com>.
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.heinrich@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
> <gr...@googlemail.com>  wrote:
>> Hi ant-list,
>>
>> Is it possible to retrieve all targets from a buildfile?
>>
>> Thanks, Stefan.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Getting all targets in a Buildfile

Posted by Stefan Bernsdorf <gr...@googlemail.com>.
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
> <gr...@googlemail.com>  wrote:
>> Hi ant-list,
>>
>> Is it possible to retrieve all targets from a buildfile?
>>
>> Thanks, Stefan.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Getting all targets in a Buildfile

Posted by Lewis John Mcgibbney <le...@gmail.com>.
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
<gr...@googlemail.com> wrote:
> Hi ant-list,
>
> Is it possible to retrieve all targets from a buildfile?
>
> Thanks, Stefan.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>



-- 
Lewis

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org