@@ -80,7 +80,7 @@ JVM.
<tr>
<tr>
<td valign="top">failonerror</td>
<td valign="top">failonerror</td>
<td valign="top">Stop the buildprocess if the command exits with a
<td valign="top">Stop the buildprocess if the command exits with a
returncode other than 0. Only available if fork is true. </td>
returncode other than 0. Default is "false" </td>
<td align="center" valign="top">No</td>
<td align="center" valign="top">No</td>
</tr>
</tr>
<tr>
<tr>
@@ -111,17 +111,33 @@ variables</a>.</p>
<p><code>Java</code>'s <i>classpath</i> attribute is a <a
<p><code>Java</code>'s <i>classpath</i> attribute is a <a
href="../using.html#path">PATH like structure</a> and can also be set via a nested
href="../using.html#path">PATH like structure</a> and can also be set via a nested
<i>classpath</i> element.</p>
<i>classpath</i> element.</p>
<h5>Example</h5 >
<h3>Examples</h3 >
<pre>
<pre>
<java classname="test.Main" >
<java classname="test.Main" >
<arg value="-h"/>
<arg value="-h"/>
<classpath>
<classpath>
<pathelement location="\ test.jar"/>
<pathelement location="dist/ test.jar"/>
<pathelement path="${java.class.path}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</classpath>
</java>
</java>
</pre>
</pre>
<h3>Examples</h3>
Run a class in this JVM with a new jar on the classpath
<pre> <java jar="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>
</pre>
Run the jar using the manifest supplied entry point, forking (as required),
and with a maximum memory of 128MB. Any non zero return code breaks the build.
<pre> <java classname="test.Main"/></pre>
<pre> <java classname="test.Main"/></pre>
<pre> <java classname="test.Main"
<pre> <java classname="test.Main"
fork="yes" >
fork="yes" >
@@ -130,7 +146,9 @@ href="../using.html#path">PATH like structure</a> and can also be set via a nest
<jvmarg value="-Xrunhprof:cpu=samples,file=log.txt,depth=3"/>
<jvmarg value="-Xrunhprof:cpu=samples,file=log.txt,depth=3"/>
</java>
</java>
</pre>
</pre>
<strong>Note</strong>: you can not specify the (highly deprecated) MSJVM, "jview.exe" as the
JVM, as it takes different parameters for other JVMs,
That JVM can be started from <exec> if required.
<hr>
<hr>
<p align="center">Copyright © 2000,2001 Apache Software Foundation. All rights
<p align="center">Copyright © 2000,2001 Apache Software Foundation. All rights
Reserved.</p>
Reserved.</p>