From 08406b67b5b9526446b207b49374315eed9a9e8e Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Wed, 20 Apr 2005 20:26:00 +0000 Subject: [PATCH] mark a task use as , wrap some lines. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278160 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/java.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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.

Errors and return codes

-By default the return code of a <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.

+, then <java> must return 0 otherwise the build will +exit, as the class was run by the build JVM.

JAR file execution