From 0a53c6b6068d6281e860f6435b5ca84d08a1dc63 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Mon, 13 Nov 2006 20:48:56 +0000 Subject: [PATCH] add a manual entry for antversion git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@474508 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/conditions.html | 34 ++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/docs/manual/CoreTasks/conditions.html b/docs/manual/CoreTasks/conditions.html index f42668066..46a097bf9 100644 --- a/docs/manual/CoreTasks/conditions.html +++ b/docs/manual/CoreTasks/conditions.html @@ -835,7 +835,7 @@ must match. Since Ant 1.7 An example:

-<condition propery="legal-password">
+<condition property="legal-password">
   <matches pattern="[1-9]" string="${user-input}"/>
 </condition>
 <fail message="Your password should at least contain one number"
@@ -881,5 +881,37 @@ must match. Since Ant 1.7
            singleline="false"/>
 </au:assertFalse>
 
+

antversion

+ +

+ Test the ant version. + Since Ant 1.7.0

+ + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
atleastThe version that this at least. + The format is major.minor.point.One of these.
exactlyThe version that this ant is exactly. + The format is major.minor.point.
+

+ An example: +

+
+<condition property="ant-is-exact-7">
+  <antversion exactly="1.7.0"/>
+</condition>
+