diff --git a/docs/manual/CoreTasks/java.html b/docs/manual/CoreTasks/java.html index 8d4d494a7..d087608d2 100644 --- a/docs/manual/CoreTasks/java.html +++ b/docs/manual/CoreTasks/java.html @@ -30,13 +30,15 @@ EOF (-1). This is a change from Ant 1.5, where such an attempt would block.
Similarly, if failonerror="false"
and fork="false"
, then <java>
must return 0 otherwise the build will exit, as the class was run by the build jvm.
<java classname="test.Main"> @@ -300,9 +312,30 @@ Run a class in this JVM with a new jar on the classpath </classpath> </java>-Run the jar using the manifest supplied entry point, forking (as required), +Run the JAR test.jar in this project's dist/lib directory. +using the manifest supplied entry point, forking (as required), and with a maximum memory of 128MB. Any non zero return code breaks the build. +
<java + dir="${exec.dir}" + jar="${exec.dir}/dist/test.jar" + fork="true" + failonerror="true" + maxmemory="128m" + > + <arg value="-h"/> + <classpath> + <pathelement location="dist/test.jar"/> + <pathelement path="${java.class.path}"/> + </classpath> + </java> ++ +Run the JAR dist/test.jar relative to the directory +${exec.dir}, this being the same directory into which the JVM +is to start up. + +
<java classname="test.Main"/>
<java classname="test.Main" fork="yes" >