next up previous contents index
Next: Parameters specified as nested Up: Java Previous: Description   Contents   Index

Parameters

Attribute Description Required
classname the Java class to execute. Either jar or classname
jar the location of the jar file to execute (must have a Main-Class entry in the manifest). Fork must be set to true if this option is selected. Either jar or classname
args the arguments for the class that is executed. deprecated, use nested <arg> elements instead. No
classpath the classpath to use. No
classpathref the classpath to use, given as reference to a PATH defined elsewhere. No
fork if enabled triggers the class execution in another VM (disabled by default) No
jvm the command used to invoke the Java Virtual Machine, default is 'java'. The command is resolved by java.lang.Runtime.exec(). Ignored if fork is disabled. No
jvmargs the arguments to pass to the forked VM (ignored if fork is disabled). deprecated, use nested <jvmarg> elements instead. No
maxmemory Max amount of memory to allocate to the forked VM (ignored if fork is disabled) No
failonerror Stop the buildprocess if the command exits with a returncode other than 0. Default is "false" No
dir The directory to invoke the VM in. (ignored if fork is disabled) No
output Name of a file to write the output to. No
append whether output should be appended to or overwrite an existing file. Defaults to false. No
newenvironment Do not propagate old environment when new environment variables are specified. Default is "false" (ignored if fork is disabled). No
timeout Stop the command if it doesn't finish within the specified time (given in milliseconds). It is highly recommended to use this feature only if fork is enabled. No


next up previous contents index
Next: Parameters specified as nested Up: Java Previous: Description   Contents   Index
Andrew Marlow 2003-07-08