diff --git a/docs/manual/CoreTasks/java.html b/docs/manual/CoreTasks/java.html index d3de08adf..79f3249bf 100644 --- a/docs/manual/CoreTasks/java.html +++ b/docs/manual/CoreTasks/java.html @@ -266,7 +266,7 @@ subelement.
A nested I/O Redirector
can be specified. In general, the attributes of the redirector behave
as the corresponding attributes available at the task level. The most
-notable peculiarity stems from the retention of the <java>
+notable peculiarity stems from the retention of the <java>
attributes for backwards compatibility. Any file mapping is done
using a null
sourcefile; therefore not all
Mapper types will return
@@ -275,13 +275,16 @@ will fall back to the task level attributes. In practice this means that
defaults can be specified for input, output, and error output files.
<java>
is ignored. Alternatively, you can set resultproperty
to the name
+By default the return code of a <java>
is ignored.
+Alternatively, you can set resultproperty
to the name
of a property and have it assigned to the result code (barring immutability,
of course).
-When you set failonerror="true"
, the only possible value for resultproperty
is 0. Any non zero response is treated as an
+When you set failonerror="true"
, the only possible value for
+resultproperty
is 0. Any non-zero response is treated as an
error and would mean the build exits.
Similarly, if failonerror="false"
and fork="false"
-, then <java>
must return 0 otherwise the build will exit, as the class was run by the build jvm.
<java>
must return 0 otherwise the build will
+exit, as the class was run by the build JVM.