ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Irfan.Sa...@t-systems.com>
Subject RE: list out no. of targets
Date Wed, 14 May 2008 10:18:36 GMT
Thanks to all.

But we don't have any ant command to list out the no. of targets in
build.xml instead of using "sed"??

I have seen that ant -projecthelp but it does not have any option to
count the no. of targets 

Please help.

Regards,
Irfan


-----Original Message-----
From: David Weintraub [mailto:qazwart@gmail.com] 
Sent: Tuesday, May 13, 2008 11:03 PM
To: Ant Users List
Subject: Re: list out no. of targets

Put a "description" attribute on the targets you want to make visible,
and then you can use "ant -projecthelp" to list those targets. That
way, "internal" targets aren't listed with the targets you want the
developers to see.

Otherwise, if you're on Unix, you can use sed:

sed -n '/<target/s/<target.*name="\([^"]*\).*$/\1/p' build.xml

On Tue, May 13, 2008 at 11:02 AM,  <Irfan.Sayed@t-systems.com> wrote:
> Hi All,
>
>
>
>  How to list out no. of targets in build.xml file using ANT command.
>
>
>
>  Please let me know. Please help.
>
>
>
>  Regards,
>
>  Irfan
>
>
>
>



-- 
--
David Weintraub
qazwart@gmail.com

---------------------------------------------------------------------
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


Mime
View raw message