ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r474508 - /ant/core/trunk/docs/manual/CoreTasks/conditions.html
Date Mon, 13 Nov 2006 20:48:57 GMT
Author: peterreilly
Date: Mon Nov 13 12:48:56 2006
New Revision: 474508

URL: http://svn.apache.org/viewvc?view=rev&rev=474508
Log:
add a manual entry for antversion

Modified:
    ant/core/trunk/docs/manual/CoreTasks/conditions.html

Modified: ant/core/trunk/docs/manual/CoreTasks/conditions.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTasks/conditions.html?view=diff&rev=474508&r1=474507&r2=474508
==============================================================================
--- ant/core/trunk/docs/manual/CoreTasks/conditions.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/conditions.html Mon Nov 13 12:48:56 2006
@@ -835,7 +835,7 @@
     An example:
   </p>
 <blockquote><pre>
-&lt;condition propery="legal-password"&gt;
+&lt;condition property="legal-password"&gt;
   &lt;matches pattern="[1-9]" string="${user-input}"/&gt;
 &lt;/condition&gt;
 &lt;fail message="Your password should at least contain one number"
@@ -880,6 +880,38 @@
            casesensitive="false"
            singleline="false"/&gt;
 &lt;/au:assertFalse&gt;
+</pre></blockquote>
+<h4>antversion</h4>
+
+<p>
+  Test the ant version.
+  <b>Since Ant 1.7.0</b></p>
+
+<table border="1" cellpadding="2" cellspacing="0">
+  <tr>
+    <td valign="top"><b>Attribute</b></td>
+    <td valign="top"><b>Description</b></td>
+    <td align="center" valign="top"><b>Required</b></td>
+  </tr>
+  <tr>
+    <td valign="top">atleast</td>
+    <td valign="top">The version that this at least.
+      The format is major.minor.point.</td>
+    <td valign="top" rowspan="2" align="center">One of these.</td>
+  </tr>
+  <tr>
+    <td valign="top">exactly</td>
+    <td valign="top">The version that this ant is exactly.
+      The format is major.minor.point.</td>
+  </tr>
+</table>
+  <p>
+    An example:
+  </p>
+<blockquote><pre>
+&lt;condition property="ant-is-exact-7"&gt;
+  &lt;antversion exactly="1.7.0"/&gt;
+&lt;/condition&gt;
 </pre></blockquote>
 </body>
 </html>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message