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. Increase the JVM permgen size:
    • Windows - Add set ANT_OPTS=-Xmx1024m -XX:MaxPermSize=256m -XX:PermSize=128m to %USERPROFILE%\antrc_pre.bat
    • UNIX - Add export ANT_OPTS="-Xmx1024m -XX:MaxPermSize=256m -XX:PermSize=128m to ~/.antrc
  3. Confirm the value of ANT_OPTS before executing CLI scripts from the command prompt.

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.