Invoking the Command-Line Interface
To invoke the command-line interface, you first install and set up Ant. You can then run Ant.
Before you begin
- Download Ant from http://ant.apache.org and install as directed in the Ant documentation.
- Confirm the value of
ANT_OPTS
before executing CLI scripts from the command prompt.- Windows - Add
set ANT_OPTS=-Xmx1024m
to
%USERPROFILE%\antrc_pre.bat
- UNIX - Add
export ANT_OPTS="-Xmx1024m
to
~/.antrc
- Windows - Add
set ANT_OPTS=-Xmx1024m
to
- Procedure
- Add the Ant executable to your path.
- Run ant -f build.xml, where build is the name of the build configuration file.
ResultThe output states the results of each action specified in the default target in the build file.