Invoking the Command-Line Interface

To invoke the command-line interface, you first install and set up Ant. You can then run Ant.

Prerequisites

  1. Download Ant from http://ant.apache.org and install as directed in the Ant documentation.
  2. 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

Procedure

  1. Add the Ant executable to your path.
  2. Run ant -f build.xml, where build is the name of the build configuration file.

Result

The output states the results of each action specified in the default target in the build file.