You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ir...@t-systems.com on 2008/05/13 17:02:26 UTC
list out no. of targets
Hi All,
How to list out no. of targets in build.xml file using ANT command.
Please let me know. Please help.
Regards,
Irfan
RE: list out no. of targets
Posted by Ir...@t-systems.com.
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, <Ir...@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
Re: list out no. of targets
Posted by David Weintraub <qa...@gmail.com>.
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, <Ir...@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
Re: list out no. of targets
Posted by James Fuller <ja...@gmail.com>.
try -projecthelp
Options:
-help, -h print this message
-projecthelp, -p print project help information
-version print the version information and exit
-diagnostics print information that might be helpful to
diagnose or report problems.
-quiet, -q be extra quiet
-verbose, -v be extra verbose
-debug, -d print debugging information
-emacs, -e produce logging information without adornments
-lib <path> specifies a path to search for jars and classes
-logfile <file> use given file for log
-l <file> ''
-logger <classname> the class which is to perform logging
-listener <classname> add an instance of class as a project listener
-noinput do not allow interactive input
-buildfile <file> use given buildfile
-file <file> ''
-f <file> ''
-D<property>=<value> use value for given property
-keep-going, -k execute all targets that do not depend
on failed target(s)
-propertyfile <name> load all properties from file with -D
properties taking precedence
-inputhandler <class> the class which will handle input requests
-find <file> (s)earch for buildfile towards the root of
-s <file> the filesystem and use it
-nice number A niceness value for the main thread:
1 (lowest) to 10 (highest); 5 is the default
-nouserlib Run ant without using the jar files from
${user.home}/.ant/lib
-noclasspath Run ant without using CLASSPATH
-autoproxy Java 1.5+ : use the OS proxies
-main <class> override Ant's normal entry point
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org