Running Ant
Problem
You want to run Ant.
Solution
The complete command-line syntax is as follows:
ant [options] [target [target2 [target3] ...]]
Discussion
Table 3-1 lists all of the Ant command-line options. This table applies to Ant Version 1.5.1.
Table 3-1. Ant command-line options
|
Option |
Description |
|---|---|
|
|
Specify which buildfile to use. If omitted, Ant searches for a file
named |
|
|
Pass name/value pairs as properties. |
|
|
Write debugging information as the build progresses. |
|
|
Write diagnostic information as the build progresses. |
|
|
Write the log file in a way that Emacs understands. |
|
|
Locate a buildfile. Start searching in this directory, then the parent directory, and so on until the file is found or the filesystem root is reached. |
|
|
Show these options. |
|
|
Use a custom input handler class. |
|
|
Use a custom build listener class. |
|
|
Send messages to the specified file instead of the console. |
|
|
Use a custom logger class. |
|
|
Show a list of all targets in the buildfile. |
|
|
Load all of the properties in the specified file. Properties specified with -D take precedence. |
|
|
Suppress much of the output. |
|
|
Write more information as the build progresses. |
|
|
Show the version of Ant. |
See Also
Type ant
-help to see ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access