Dashboard > Pulse v1.2 > ... > recipe > ant
  Pulse v1.2 Log In | Sign Up   View a printable version of the current page.  
  ant
Added by Jason Sankey, last edited by Daniel Ostermeier on Apr 10, 2006  (view change)
Labels: 
(None)

Pulse Manual Index

Ant

The ant command is used to execute the Apache Ant build tool. It provides a convenient way to execute ant, and applies an ant post-processor to the command output by default. The ant command is based on the executable command, thus all attributes and child elements valid for the executable command are also valid for the ant command.

Finding the ant binary

The ant command will try the following values for the ant binary:

  • if a binary is specified explictly using the exe attribute, that value will be used
  • if a property named "ant.bin" exists, the value of that property will be used
  • otherwise, the value "ant" will be used, or "ant.bat" on Windows systems (and thus ant must be found in the PATH of the pulse™ process)

The "ant.bin" property may be made available by an automatically-discovered (or manually created) ant resource.

Attributes

Attribute Description Required? Default
build-file The ant build file to use. No Left to ant (i.e. build.xml)
targets A space-separated list of targets to execute. No  

See also executable.

Child Elements

See executable.

Examples

Execute the "build" target from the default build file:

<ant name="build" targets="build"/>

Execute targets "build" and "test" from a custom build file:

<ant name="test" build-file="mybuild.xml" targets="build test"/>

Zutubi wiki is Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.10 Build:#528 Nov 29, 2006) - Bug/feature request - Contact Administrators