Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

RE: list out no. of targets

Irfan Sayed

2008-05-14

Replies:

Author LoginPost Reply
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@(protected)]
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@(protected):
> 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@(protected)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.