From 5947ffd64f9d417e57862de87fa032b85092a9b3 Mon Sep 17 00:00:00 2001
From: Matthew Jason Benson
Date: Thu, 27 Jan 2005 21:01:05 +0000
Subject: [PATCH] Added else attribute to condition task. PR: 33074
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277520 13f79535-47bb-0310-9956-ffa450edef68
---
WHATSNEW | 4 +++
docs/manual/CoreTasks/condition.html | 10 +++++++-
src/etc/testcases/taskdefs/condition.xml | 25 +++++++++++++++++++
.../tools/ant/taskdefs/ConditionTask.java | 18 +++++++++++--
.../tools/ant/taskdefs/ConditionTest.java | 5 +++-
5 files changed, 58 insertions(+), 4 deletions(-)
diff --git a/WHATSNEW b/WHATSNEW
index 2927efe62..11cf9de08 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -89,6 +89,10 @@ Other changes:
* Added clone task. Bugzilla report 32631.
+* Add else attribute to the condition task, which specifies an
+ optional alternate value to set the property to if the nested
+ condition evaluates to false. Bugzilla report 33074.
+
Changes from Ant 1.6.2 to current Ant 1.6 CVS version
=====================================================
diff --git a/docs/manual/CoreTasks/condition.html b/docs/manual/CoreTasks/condition.html
index 78a00c6d6..33e571b7c 100644
--- a/docs/manual/CoreTasks/condition.html
+++ b/docs/manual/CoreTasks/condition.html
@@ -36,6 +36,14 @@ you must specify exactly one condition.
"true".
No |
+
+ else |
+ The value to set the property to if the condition
+ evaluates to false. By default the property will remain unset.
+ Since Ant 1.6.3
+ |
+ No |
+
All conditions to test are specified as nested elements, for a
@@ -80,7 +88,7 @@ in the Unix family as well.
operating system is SunOS and if it is running on a sparc architecture.
-Copyright © 2001-2002 Apache Software
+
Copyright © 2001-2002, 2005 Apache Software
Foundation. All rights Reserved.