How can I get a list of build targets in Ant?

Viewed 71047

My codebase has a long build.properties file written by someone else. I want to see the available built targets without having to search through the file manually. Does ant have a command for this - something like ant show-targets - that will make it list all the targets in the build file?

4 Answers

You can check the list of target and default target in build.xml by the following command

ant -p built.xml

Related