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?
相关问题
- How can I have my ant task pass or fail based on t
- Ant inheriting Maven properties
- How can I zip multiple folders individually with a
- Class in jar not found at runtime, but was used to
- Regex to select last line in a multi-line string
相关文章
- Passing command line arguments to Java via ant bui
- ANT - Could not load a dependent class com/jcraft/
- library resolve to a path with no project.properti
- ant file that depends on another ant file
- android-sdk/tools/ant/build.xml:698: null returned
- ant jar's mainclass
- Integrate Ant builder into Eclipse: Error “Variabl
- How can I avoid this Ant Build error?
The
-p
or-projecthelp
option does exactly this, so you can just try:From ant's command line documentation:
The
-p
or-projecthelp
option does exactly this, so you can do:You can make a target to invoke this like:
which you can then set as the default, so just typing ant will list the available targets.
(Combining @Grodriguez' answer and @sschuberth's comment - I thought it was worth an answer by itself)
To get all the targets in the build file