Invoking the Command-Line Interface
To invoke the command-line interface, you first install and set up
Ant. You can then run Ant.
Prerequisites
- Download Ant from
http://ant.apache.org and install as directed in the Ant documentation.
- 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
- Confirm the value of
ANT_OPTS before executing CLI scripts from the
command prompt.
Procedure
-
Add the Ant executable to your path.
-
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.
Copyright © Cloud Software Group, Inc. All rights reserved.