From 923355ba638e2035b7c6c1090b6b9b798745d849 Mon Sep 17 00:00:00 2001
From: Jan Materne
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.