diff --git a/manual/Tasks/java.html b/manual/Tasks/java.html index a83b0aff2..36d50ce53 100644 --- a/manual/Tasks/java.html +++ b/manual/Tasks/java.html @@ -54,9 +54,9 @@ attributes.
<java>
must return 0 otherwise the build will
exit, as the class was run by the build JVM.
+Java
's modulepath attribute is a PATH like structure and can also be set via a nested
+modulepath element.
The location of modules that replace upgradeable modules in the runtime image +can be specified using this PATH like structure.
+ +The parameter of the jar attribute is of type File;
@@ -400,6 +431,31 @@ log-prefix to [java1.4]
.
JVM, as it takes different parameters for other JVMs,
That JVM can be started from <exec>
if required.
+ <java + fork="true" + failonerror="true" + maxmemory="128m" + module="TestModule" + modulepath="lib:dist/test.jar"/> ++Runs the module TestModule resolved on the modulepath lib/:dist/test.jar +with a maximum memory of 128MB. Any non zero return code breaks the build. +
+ <java + fork="true" + failonerror="true" + maxmemory="128m" + module="TestModule" + classname="Main"> + <modulepath> + <pathelement location="lib"/> + <pathelement location="dist/test.jar"/> + </modulepath> + </java> ++Runs the class Main in module TestModule resolved on the modulepath lib/:dist/test.jar +with a maximum memory of 128MB. Any non zero return code breaks the build.