From 86fad58f2d862eaa97e4633c6819dbe86912c9a7 Mon Sep 17 00:00:00 2001
From: Matthew Jason Benson
Date: Mon, 5 Aug 2013 17:35:08 +0000
Subject: [PATCH] Documentation fix for if/unless attributes. PR 55359.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1510618 13f79535-47bb-0310-9956-ffa450edef68
---
WHATSNEW | 2 ++
manual/ifunless.html | 10 +++++-----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/WHATSNEW b/WHATSNEW
index 4ce440279..36fdf95bb 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -12,6 +12,8 @@ Fixed bugs:
Other changes:
--------------
+ * Documentation fix for if/unless attributes. PR 55359.
+
Changes from Ant 1.9.1 TO Ant 1.9.2
===================================
diff --git a/manual/ifunless.html b/manual/ifunless.html
index 02ea00785..abbdce1b9 100644
--- a/manual/ifunless.html
+++ b/manual/ifunless.html
@@ -36,9 +36,9 @@
The if and unless namespaces support the following 3 conditions :
- - true
true if the value of the property evaluates to true
- - blank
true if the value of the property is null or empty
- - set
true if the property is set
+ - true
true if the value of the attribute evaluates to true
+ - blank
true if the value of the attribute is null or empty
+ - set
true if the specified property is set
@@ -48,8 +48,8 @@
xmlns:unless="ant:unless"
>
<exec executable="java">
- <arg line="-X" if:true="showextendedparams"/>
- <arg line="-version" unless:true="showextendedparams"/>
+ <arg line="-X" if:true="${showextendedparams}"/>
+ <arg line="-version" unless:true="${showextendedparams}"/>
</exec>
<condition property="onmac">
<os family="mac"/>