@@ -241,9 +241,9 @@ been revoked) the System.exit() call will be intercepted
and treated like indicated in <i>failonerror</i>.</p>
and treated like indicated in <i>failonerror</i>.</p>
<p>Note:<br>
<p>Note:<br>
If you do not specify permissions,
If you do not specify permissions,
a set of default permissions will be added to your Java invocation to make
a set of default permissions will be added to your Java invocation to make
sure that the ant run will continue or terminated as indicated by
sure that the ant run will continue or terminated as indicated by
<i>failonerror</i>. All permissions not granted per default will be
<i>failonerror</i>. All permissions not granted per default will be
checked by whatever security manager was already in place. exitVM will be
checked by whatever security manager was already in place. exitVM will be
disallowed.
disallowed.
</p>
</p>
@@ -256,7 +256,7 @@ disallowed.
<p>You can control enablement of Java 1.4 assertions with an
<p>You can control enablement of Java 1.4 assertions with an
<a href="../CoreTypes/assertions.html"><tt><assertions></tt></a>
<a href="../CoreTypes/assertions.html"><tt><assertions></tt></a>
subelement.</p>
subelement.</p>
<p>Assertion statements are currently ignored in non-forked mode.</p>
<p>Assertion statements are currently ignored in non-forked mode.</p>
<p><em>since Ant 1.6.</em></p>
<p><em>since Ant 1.6.</em></p>
@@ -340,13 +340,13 @@ and with a maximum memory of 128MB. Any non zero return code breaks the build.
</classpath>
</classpath>
</java>
</java>
</pre>
</pre>
Run the JAR dist/test.jar relative to the directory
Run the JAR dist/test.jar relative to the directory
<tt>${exec.dir}</tt>, this being the same directory into which the JVM
<tt>${exec.dir}</tt>, this being the same directory into which the JVM
is to start up.
is to start up.
<pre> <java classname="test.Main"/></pre>
<pre> <java classname="test.Main"/></pre>
Runs a given class with the current classpath.
<pre>
<pre>
<java classname="test.Main"
<java classname="test.Main"
fork="yes" >
fork="yes" >
@@ -355,12 +355,24 @@ is to start up.
<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
Add system properties and JVM-properties to the JVM as in
<code>java ="-Xrunhprof:cpu=samples,file=log.txt,depth=3 -DDEBUG=true test.Main</code>
<pre> <java classname="ShowJavaVersion" classpath="."
jvm="path-to-java14-home/bin/java" fork="true"
taskname="java1.4" >
</pre>
Use a given Java implementation (another the one Ant is currently using) to run the class.
For documentation in the log <code>taskname</code> is used to change the <code>[java]</code>
log-prefix to <code>[java1.4]</code>.
<p><strong>Note</strong>: you can not specify the (highly deprecated) MSJVM, "jview.exe" as the
JVM, as it takes different parameters for other JVMs,
JVM, as it takes different parameters for other JVMs,
That JVM can be started from <code><exec></code> if required.
That JVM can be started from <code><exec></code> if required.</p>
<hr>
<hr>
<p align="center">Copyright © 2000-2005 The Apache Software Foundation. All rights
<p align="center">Copyright © 2000-2006 The Apache Software Foundation. All rights
Reserved.</p>
Reserved.</p>
</body>
</body>
</html>
</html>