Overview
Ant projects are used to build software with the Apache Ant
build tool. Ant is commonly used to build Java projects, but can also be used to build software written in other languages.
Configuration
working directory
If you wish to execute ant from a specific directory, provide the path of the directory, relative to the base directory for the recipe. Usually this option is not required, as ant build files can use paths relative to the location of the build file itself.
This setting is not required. By default, ant will be executed in the base directory for the build.
build file
The location of the ant build file (usually called build.xml), relative to the working directory in which ant is executed (see above).
This setting is required.
targets
A space-separated list of ant targets to execute.
This setting is not required. If not specified, ant will execute the default target.
arguments
A space-separated list of additional command line arguments to pass to ant. You may use this option to pass arbitrary arguments to the ant binary.
This setting is not required.
Locating Ant
Ant projects make use of the ant command, and thus the ant binary is located as described in the documentation for that command. In addition, an ant project will import a resource named "ant" if it exists. This facility may be used in conjunction with the ant command's use of the property "ant.bin" to control the ant binary used. Via resource auto-discovery, your pulse™ server may locate ant and set up an appropriate resource for you.