Hi
I've a long build.properties file made by someone else. I want to see available targets without going through the file. Does ant have a command for this? Like 'ant show-targets' so that it will list all the targets in the build file.
Hi
I've a long build.properties file made by someone else. I want to see available targets without going through the file. Does ant have a command for this? Like 'ant show-targets' so that it will list all the targets in the build file.
The -p
or -projecthelp
option does exactly this, so you can just try:
ant -p build.xml
From ant's command line documentation:
The
-projecthelp
option prints out a list of the build file's targets. Targets that include adescription
attribute are listed as "Main targets", those without adescription
are listed as "Other targets", then the "Default" target is listed ("Other targets" are only displayed if there are no main targets, or if Ant is invoked in-verbose
or-debug
mode).