diff --git a/docs/manual/CoreTasks/java.html b/docs/manual/CoreTasks/java.html index 9954eebb9..3315c99aa 100644 --- a/docs/manual/CoreTasks/java.html +++ b/docs/manual/CoreTasks/java.html @@ -241,9 +241,9 @@ been revoked) the System.exit() call will be intercepted and treated like indicated in failonerror.
Note:
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
-failonerror. All permissions not granted per default will be
+failonerror. All permissions not granted per default will be
checked by whatever security manager was already in place. exitVM will be
disallowed.
You can control enablement of Java 1.4 assertions with an <assertions> subelement.
- +Assertion statements are currently ignored in non-forked mode.
since Ant 1.6.
@@ -340,13 +340,13 @@ and with a maximum memory of 128MB. Any non zero return code breaks the build. </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. - +is to start up.<java classname="test.Main"/>+Runs a given class with the current classpath. +
<java classname="test.Main" fork="yes" > @@ -355,12 +355,24 @@ is to start up. <jvmarg value="-Xrunhprof:cpu=samples,file=log.txt,depth=3"/> </java>-Note: you can not specify the (highly deprecated) MSJVM, "jview.exe" as the +Add system properties and JVM-properties to the JVM as in +
java ="-Xrunhprof:cpu=samples,file=log.txt,depth=3 -DDEBUG=true test.Main
+
+<java classname="ShowJavaVersion" classpath="." + jvm="path-to-java14-home/bin/java" fork="true" + taskname="java1.4" > ++Use a given Java implementation (another the one Ant is currently using) to run the class. +For documentation in the log
taskname
is used to change the [java]
+log-prefix to [java1.4]
.
+
+
+Note: 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.
+That JVM can be started from <exec>
if required.
Copyright © 2000-2005 The Apache Software Foundation. All rights +
Copyright © 2000-2006 The Apache Software Foundation. All rights Reserved.