Thursday, 25 February 2016

List only target names from build.xml in Apache Ant

In Apache Ant, for listing only the target names defined in the build.xml, all we have to do is type the following from command line :

Eg :

ant -p build.xml

Output :

Buildfile: /Users/ironcladzone/Documents/workspace/AntBuildTest/build/build.xml

Main targets:

Other targets:

 clean
 compile
 copydir
 create-jar
 createdir

Default target: create-jar

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
eXTReMe Tracker