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:[EMAIL 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,  <[EMAIL PROTECTED]> 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
[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]

Reply via email to