From 17bd4f66702fad1c7978b26f10e30b58c8a19794 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Tue, 17 Jul 2007 18:02:20 +0000 Subject: [PATCH] document scriptcondition return value git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@557001 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/conditions.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/manual/CoreTasks/conditions.html b/docs/manual/CoreTasks/conditions.html index 221a4d924..665f67e45 100644 --- a/docs/manual/CoreTasks/conditions.html +++ b/docs/manual/CoreTasks/conditions.html @@ -539,9 +539,10 @@ an explanation of scripts and dependencies.
Description

The script supports script language inline, this script has access to the -same beans as the <script> task, and to the -self bean, which refers back to the condition itself. The -value property of this bean sets the return value: +same beans as the <script> task, and to the self 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 (since Ant 1.7.1). +Alternatively, self.value can be used to set the evaluation result.

Example: