|
|
@@ -835,7 +835,7 @@ must match. <b>Since Ant 1.7</b> |
|
|
|
An example: |
|
|
|
</p> |
|
|
|
<blockquote><pre> |
|
|
|
<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. <b>Since Ant 1.7</b> |
|
|
|
singleline="false"/> |
|
|
|
</au:assertFalse> |
|
|
|
</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> |
|
|
|
<condition property="ant-is-exact-7"> |
|
|
|
<antversion exactly="1.7.0"/> |
|
|
|
</condition> |
|
|
|
</pre></blockquote> |
|
|
|
</body> |
|
|
|
</html> |