stevel 01/11/27 12:17:02
Modified: docs/manual/CoreTasks java.html
Log:
PR 5025 : no MSJVM support.
This is documented. Also clarified failonerror usage, added another example
Revision Changes Path
1.6 +23 -5 jakarta-ant/docs/manual/CoreTasks/java.html
Index: java.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/java.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- java.html 2001/11/20 06:53:06 1.5
+++ java.html 2001/11/27 20:17:02 1.6
@@ -80,7 +80,7 @@
<tr>
<td valign="top">failonerror</td>
<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>
</tr>
<tr>
@@ -111,17 +111,33 @@
<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
<i>classpath</i> element.</p>
-<h5>Example</h5>
+<h3>Examples</h3>
<pre>
<java classname="test.Main" >
<arg value="-h"/>
<classpath>
- <pathelement location="\test.jar"/>
+ <pathelement location="dist/test.jar"/>
<pathelement path="${java.class.path}"/>
</classpath>
</java>
</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"
fork="yes" >
@@ -130,7 +146,9 @@
<jvmarg
value="-Xrunhprof:cpu=samples,file=log.txt,depth=3"/>
</java>
</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>
<p align="center">Copyright © 2000,2001 Apache Software Foundation. All
rights
Reserved.</p>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>