Browse Source

document scriptcondition return value

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@557001 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 18 years ago
parent
commit
17bd4f6670
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      docs/manual/CoreTasks/conditions.html

+ 4
- 3
docs/manual/CoreTasks/conditions.html View File

@@ -539,9 +539,10 @@ an explanation of scripts and dependencies.
<h5>Description</h5> <h5>Description</h5>
<p> <p>
The script supports script language inline, this script has access to the The script supports script language inline, this script has access to the
same beans as the <code>&lt;script&gt;</code> task, and to the <code>
self</code> bean, which refers back to the condition itself. The
<code>value</code> property of this bean sets the return value:
same beans as the <code>&lt;script&gt;</code> task, and to the <code>self</code> bean,
which refers back to the condition itself. If the script evaluates to a boolean result,
this is the result of the condition's evaluation (<em>since Ant 1.7.1</em>).
Alternatively, <code>self.value</code> can be used to set the evaluation result.
</p> </p>
<p> <p>
Example: Example:


Loading…
Cancel
Save