next up previous contents index
Next: Examples Up: Exec Previous: Description   Contents   Index

Parameters

Attribute Description Required
command the command to execute with all command line arguments. deprecated, use executable and nested <arg> elements instead. Exactly one of the two.
executable the command to execute without any command line arguments.
dir the directory in which the command should be executed. No
os list of Operating Systems on which the command may be executed. If the current OS's name is contained in this list, the command will be executed. The OS's name is determined by the Java Virtual machine and is set in the "os.name" system property. No
output the file to which the output of the command should be redirected. No
append whether output should be appended to or overwrite an existing file. Defaults to false. No
outputproperty the name of a property in which the output of the command should be stored. No
resultproperty the name of a property in which the return code of the command should be stored. Only of interest if failonerror=false No
timeout Stop the command if it doesn't finish within the specified time (given in milliseconds). No
failonerror Stop the buildprocess if the command exits with a returncode other than 0. Defaults to false No
failifexecutionfails Stop the build if we can't start the program. Defaults to true. No
newenvironment Do not propagate old environment when new environment variables are specified. No, default is false
vmlauncher Run command using the Java VM's execution facilities where available. If set to false the underlying OS's shell, either directly or through the antRun scripts, will be used. Under some operating systems, this gives access to facilities not normally available through the VM including, under Windows, being able to execute scripts, rather than their associated interpreter. If you want to specify the name of the executable as a relative path to the directory given by the dir attribute, it may become necessary to set vmlauncher to false as well. No, default is true


next up previous contents index
Next: Examples Up: Exec Previous: Description   Contents   Index
Andrew Marlow 2003-07-08