@@ -40,13 +40,13 @@
<a href="condition.html"><code><condition></code></a> and
<a href="condition.html"><code><condition></code></a> and
<a href="waitfor.html"><code><waitfor></code></a> tasks.</p>
<a href="waitfor.html"><code><waitfor></code></a> tasks.</p>
<h4>not</h4>
<h4><a name=" not">not</a> </h4>
<p>The <code><not></code> element expects exactly one other
<p>The <code><not></code> element expects exactly one other
condition to be nested into this element, negating the result of the
condition to be nested into this element, negating the result of the
condition. It doesn't have any attributes and accepts all nested
condition. It doesn't have any attributes and accepts all nested
elements of the condition task as nested elements as well.</p>
elements of the condition task as nested elements as well.</p>
<h4>and</h4> <p>
<h4><a name=" and">and</a> </h4> <p>
The <code><and></code> element doesn't have any attributes and
The <code><and></code> element doesn't have any attributes and
accepts an arbitrary number of conditions as nested elements - all
accepts an arbitrary number of conditions as nested elements - all
nested elements of the condition task are supported. This condition
nested elements of the condition task are supported. This condition
@@ -56,7 +56,7 @@ evaluated in the order they have been specified in the build file.</p>
semantics as the Java && operator, as soon as one of the
semantics as the Java && operator, as soon as one of the
nested conditions is false, no other condition will be evaluated.</p>
nested conditions is false, no other condition will be evaluated.</p>
<h4>or</h4> <p>
<h4><a name=" or">or</a> </h4> <p>
The <code><or></code> element doesn't have any attributes and
The <code><or></code> element doesn't have any attributes and
accepts an arbitrary number of conditions as nested elements - all
accepts an arbitrary number of conditions as nested elements - all
nested elements of the condition task are supported. This condition
nested elements of the condition task are supported. This condition
@@ -66,7 +66,7 @@ file.</p> <p>The <code><or></code> condition has the same
shortcut semantics as the Java || operator, as soon as one of the
shortcut semantics as the Java || operator, as soon as one of the
nested conditions is true, no other condition will be evaluated.</p>
nested conditions is true, no other condition will be evaluated.</p>
<h4>xor</h4>
<h4><a name=" xor">xor</a> </h4>
<p>The <code><xor></code> element performs an exclusive
<p>The <code><xor></code> element performs an exclusive
or on all nested elements, similar to the <code>^</code> operator
or on all nested elements, similar to the <code>^</code> operator
in Java. It only evaluates to true if an odd number of nested conditions
in Java. It only evaluates to true if an odd number of nested conditions
@@ -75,19 +75,19 @@ and <code><or></code> tests.
It doesn't have any attributes and accepts all nested
It doesn't have any attributes and accepts all nested
elements of the condition task as nested elements as well.</p>
elements of the condition task as nested elements as well.</p>
<h4>available</h4>
<h4><a name=" available">available</a> </h4>
<p>This condition is identical to the <a
<p>This condition is identical to the <a
href="available.html">Available</a> task, all attributes and nested
href="available.html">Available</a> task, all attributes and nested
elements of that task are supported, the property and value attributes
elements of that task are supported, the property and value attributes
are redundant and will be ignored.</p>
are redundant and will be ignored.</p>
<h4>uptodate</h4>
<h4><a name=" uptodate">uptodate</a> </h4>
<p>This condition is identical to the <a
<p>This condition is identical to the <a
href="uptodate.html">Uptodate</a> task, all attributes and nested
href="uptodate.html">Uptodate</a> task, all attributes and nested
elements of that task are supported, the property and value attributes
elements of that task are supported, the property and value attributes
are redundant and will be ignored.</p>
are redundant and will be ignored.</p>
<a name="os"><h4>os</h4></a >
<h4><a name="os">os</a></h4 >
<p>Test whether the current operating system is of a given type. Each
<p>Test whether the current operating system is of a given type. Each
defined attribute is tested and the result is true only if <i>all</i>
defined attribute is tested and the result is true only if <i>all</i>
the tests succeed.
the tests succeed.
@@ -137,7 +137,7 @@ the tests succeed.
<li>openvms for OpenVMS</li>
<li>openvms for OpenVMS</li>
</ul>
</ul>
<h4>equals</h4>
<h4><a name=" equals">equals</a> </h4>
<p>Tests whether the two given values are equal.</p>
<p>Tests whether the two given values are equal.</p>
<table border="1" cellpadding="2" cellspacing="0">
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<tr>
@@ -176,7 +176,7 @@ the tests succeed.
</tr>
</tr>
</table>
</table>
<h4>isset</h4>
<h4><a name=" isset">isset</a> </h4>
<p>Test whether a given property has been set in this project.</p>
<p>Test whether a given property has been set in this project.</p>
<table border="1" cellpadding="2" cellspacing="0">
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<tr>
@@ -191,13 +191,13 @@ the tests succeed.
</tr>
</tr>
</table>
</table>
<h4>checksum</h4>
<h4><a name=" checksum">checksum</a> </h4>
<p>This condition is identical to the <a href="checksum.html">Checksum</a>
<p>This condition is identical to the <a href="checksum.html">Checksum</a>
task, all attributes and nested elements of that task are supported,
task, all attributes and nested elements of that task are supported,
the property and overwrite attributes are redundant and will be
the property and overwrite attributes are redundant and will be
ignored.</p>
ignored.</p>
<h4>http</h4>
<h4><a name=" http">http</a> </h4>
<p>The <code>http</code> condition checks for a valid response from a
<p>The <code>http</code> condition checks for a valid response from a
web server of the specified url. By default, HTTP responses errors
web server of the specified url. By default, HTTP responses errors
of 400 or greater are viewed as invalid.</p>
of 400 or greater are viewed as invalid.</p>
@@ -231,7 +231,7 @@ of 400 or greater are viewed as invalid.</p>
</tr>
</tr>
</table>
</table>
<h4>socket</h4>
<h4><a name=" socket">socket</a> </h4>
<p>The <code>socket</code> condition checks for the existence of a
<p>The <code>socket</code> condition checks for the existence of a
TCP/IP listener at the specified host and port.</p>
TCP/IP listener at the specified host and port.</p>
<table border="1" cellpadding="2" cellspacing="0">
<table border="1" cellpadding="2" cellspacing="0">
@@ -252,7 +252,7 @@ TCP/IP listener at the specified host and port.</p>
</tr>
</tr>
</table>
</table>
<h4>filesmatch</h4>
<h4><a name=" filesmatch">filesmatch</a> </h4>
<p>Test two files for matching. Nonexistence of one file results in "false",
<p>Test two files for matching. Nonexistence of one file results in "false",
although if neither exists they are considered equal in terms of content.
although if neither exists they are considered equal in terms of content.
This test does a byte for byte comparision, so test time scales with
This test does a byte for byte comparision, so test time scales with
@@ -286,7 +286,7 @@ or the filenames match the answer is so obvious the detailed test is omitted.
</tr>
</tr>
</table>
</table>
<h4>contains</h4>
<h4><a name=" contains">contains</a> </h4>
<p>Tests whether a string contains another one.</p>
<p>Tests whether a string contains another one.</p>
<table border="1" cellpadding="2" cellspacing="0">
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<tr>
@@ -312,7 +312,7 @@ or the filenames match the answer is so obvious the detailed test is omitted.
</tr>
</tr>
</table>
</table>
<h4>istrue</h4>
<h4><a name=" istrue">istrue</a> </h4>
<p>Tests whether a string equals any of the ant definitions of true,
<p>Tests whether a string equals any of the ant definitions of true,
that is "true","yes", or "on"</p>
that is "true","yes", or "on"</p>
<table border="1" cellpadding="2" cellspacing="0">
<table border="1" cellpadding="2" cellspacing="0">
@@ -332,7 +332,7 @@ that is "true","yes", or "on"</p>
<istrue value="false"/>
<istrue value="false"/>
</pre></blockquote>
</pre></blockquote>
<h4>isfalse</h4>
<h4><a name=" isfalse">isfalse</a> </h4>
<p>Tests whether a string is not true, the negation of <istrue>
<p>Tests whether a string is not true, the negation of <istrue>
</p>
</p>
<table border="1" cellpadding="2" cellspacing="0">
<table border="1" cellpadding="2" cellspacing="0">
@@ -352,7 +352,7 @@ that is "true","yes", or "on"</p>
<isfalse value="false"/>
<isfalse value="false"/>
</pre></blockquote>
</pre></blockquote>
<h4>isreference</h4>
<h4><a name=" isreference">isreference</a> </h4>
<p>Test whether a given reference has been defined in this project and
<p>Test whether a given reference has been defined in this project and
- optionally - is of an expected type.</p>
- optionally - is of an expected type.</p>
@@ -377,7 +377,8 @@ that is "true","yes", or "on"</p>
<td valign="top" align="center">No</td>
<td valign="top" align="center">No</td>
</tr>
</tr>
</table>
</table>
<h4>issigned</h4>
<h4><a name="issigned">issigned</a></h4>
<p>
<p>
Test whether a jarfile is signed.
Test whether a jarfile is signed.
If the name of the
If the name of the
@@ -409,7 +410,8 @@ that is "true","yes", or "on"</p>
<td valign="top" align="center">No</td>
<td valign="top" align="center">No</td>
</tr>
</tr>
</table>
</table>
<h4>isfileselected</h4>
<h4><a name="isfileselected">isfileselected</a></h4>
<p>
<p>
Test whether a file passes an embedded
Test whether a file passes an embedded
<a href="../Types/selectors.html">selector</a>.
<a href="../Types/selectors.html">selector</a>.
@@ -445,7 +447,8 @@ that is "true","yes", or "on"</p>
<date datetime="06/28/2000 2:02 pm" when="equal"/>
<date datetime="06/28/2000 2:02 pm" when="equal"/>
</isfileselected>
</isfileselected>
</pre></blockquote>
</pre></blockquote>
<h4>typefound</h4>
<h4><a name="typefound">typefound</a></h4>
<p>Test whether a given type is defined, and that
<p>Test whether a given type is defined, and that
its implementation class can be loaded. Types include
its implementation class can be loaded. Types include
@@ -481,7 +484,7 @@ tasks, datatypes, scriptdefs, macrodefs and presetdefs.</p>
<typefound uri="antlib:org.apache.maven.artifact.ant" name="artifact"/>
<typefound uri="antlib:org.apache.maven.artifact.ant" name="artifact"/>
</pre></blockquote>
</pre></blockquote>
<h4>scriptcondition</h4>
<h4><a name=" scriptcondition">scriptcondition</a> </h4>
<p>Evaluate a condition based on a script in any
<p>Evaluate a condition based on a script in any
<a href="http://jakarta.apache.org/bsf" target="_top">Apache BSF</a>
<a href="http://jakarta.apache.org/bsf" target="_top">Apache BSF</a>
@@ -573,7 +576,7 @@ Example:
Sets the default value of the condition to true, then in the script,
Sets the default value of the condition to true, then in the script,
sets the value to false. This condition always evaluates to "false"
sets the value to false. This condition always evaluates to "false"
<h4>parsersupports</h4>
<h4><a name=" parsersupports">parsersupports</a> </h4>
<p>Tests whether Ant's XML parser supports a given
<p>Tests whether Ant's XML parser supports a given
feature or property, as per the SAX/JAXP specifications, by
feature or property, as per the SAX/JAXP specifications, by
@@ -627,7 +630,7 @@ Check for XML Schema support.
Check for Xerces-specific definition of the location of the no namespace schema.
Check for Xerces-specific definition of the location of the no namespace schema.
<h4>isreachable</h4>
<h4><a name=" isreachable">isreachable</a> </h4>
<p>Uses Java1.5+ networking APIs to probe for a (remote) system being
<p>Uses Java1.5+ networking APIs to probe for a (remote) system being
reachable. Exactly what probe mechanisms are used is an implementation
reachable. Exactly what probe mechanisms are used is an implementation
@@ -700,7 +703,7 @@ Probe for the maven repository being reachable.
Probe for the maven repository being reachable using the hostname, ten second timeout..
Probe for the maven repository being reachable using the hostname, ten second timeout..
</p>
</p>
<h4>length</h4>
<h4><a name=" length">length</a> </h4>
<p>This condition is a facet of the <a href="length.html">Length</a> task.
<p>This condition is a facet of the <a href="length.html">Length</a> task.
It is used to test the length of a string or one or more files.
It is used to test the length of a string or one or more files.
<b>Since Ant 1.6.3</b>
<b>Since Ant 1.6.3</b>
@@ -716,7 +719,7 @@ Probe for the maven repository being reachable using the hostname, ten second ti
</pre></blockquote>
</pre></blockquote>
<p>Verify that file <i>foo</i> is not empty.</p>
<p>Verify that file <i>foo</i> is not empty.</p>
<h4>isfailure</h4>
<h4><a name=" isfailure">isfailure</a> </h4>
<p>Test the return code of an executable (see the
<p>Test the return code of an executable (see the
<a href="exec.html">Exec</a> task) for failure. <b>Since Ant 1.7</b></p>
<a href="exec.html">Exec</a> task) for failure. <b>Since Ant 1.7</b></p>
@@ -734,7 +737,7 @@ Probe for the maven repository being reachable using the hostname, ten second ti
</tr>
</tr>
</table>
</table>
<h4>resourcecount</h4>
<h4><a name=" resourcecount">resourcecount</a> </h4>
<p>This condition is a facet of the
<p>This condition is a facet of the
<a href="resourcecount.html">ResourceCount</a> task.
<a href="resourcecount.html">ResourceCount</a> task.
It is used to test the size of a
It is used to test the size of a
@@ -747,7 +750,7 @@ Probe for the maven repository being reachable using the hostname, ten second ti
</pre></blockquote>
</pre></blockquote>
<p>Verify that a resource collection is not empty.</p>
<p>Verify that a resource collection is not empty.</p>
<h4>resourcesmatch</h4>
<h4><a name=" resourcesmatch">resourcesmatch</a> </h4>
<p>Test resources for matching. Nonexistence of one or more resources results in
<p>Test resources for matching. Nonexistence of one or more resources results in
"false", although if none exists they are considered equal in terms of content.
"false", although if none exists they are considered equal in terms of content.
By default this test does a byte for byte comparision, so test time scales with
By default this test does a byte for byte comparision, so test time scales with
@@ -774,7 +777,7 @@ must match. <b>Since Ant 1.7</b>
</tr>
</tr>
</table>
</table>
<h4>resourcecontains</h4>
<h4><a name=" resourcecontains">resourcecontains</a> </h4>
<p>Tests whether a resource contains a given (sub)string.</p>
<p>Tests whether a resource contains a given (sub)string.</p>
<p>The resources to check are specified via references or - in the
<p>The resources to check are specified via references or - in the
case of file resources via the resource attribute. <b>Since Ant 1.7.1</b>
case of file resources via the resource attribute. <b>Since Ant 1.7.1</b>
@@ -808,7 +811,7 @@ must match. <b>Since Ant 1.7</b>
</tr>
</tr>
</table>
</table>
<h4>hasmethod</h4>
<h4><a name=" hasmethod">hasmethod</a> </h4>
<p> Tests for a class having a method or field. If the class is not found
<p> Tests for a class having a method or field. If the class is not found
or fails to load, the build fails.
or fails to load, the build fails.
@@ -865,7 +868,7 @@ must match. <b>Since Ant 1.7</b>
<p>Looks for the method trimToSize in the ArrayList class.</p>
<p>Looks for the method trimToSize in the ArrayList class.</p>
<h4>matches</h4>
<h4><a name=" matches">matches</a> </h4>
<p>
<p>
Test if the specified string matches the specified regular
Test if the specified string matches the specified regular
@@ -970,13 +973,14 @@ must match. <b>Since Ant 1.7</b>
singleline="false"/>
singleline="false"/>
</au:assertFalse>
</au:assertFalse>
</pre></blockquote>
</pre></blockquote>
<h4>antversion</h4>
<h4><a name="antversion">antversion</a></h4>
<p>This condition is identical to the <a
<p>This condition is identical to the <a
href="antversion.html">Antversion</a> task, all attributes are supported, the property attribute
href="antversion.html">Antversion</a> task, all attributes are supported, the property attribute
is redundant and will be ignored.</p>
is redundant and will be ignored.</p>
<h4>hasfreespace</h4>
<h4><a name=" hasfreespace">hasfreespace</a> </h4>
<p>
<p>
Tests a partition to see if there is enough space.
Tests a partition to see if there is enough space.
@@ -1015,7 +1019,7 @@ is redundant and will be ignored.</p>
<hasfreespace partition="c:" needed="100M"/>
<hasfreespace partition="c:" needed="100M"/>
</pre></blockquote>
</pre></blockquote>
<h4>islastmodified</h4>
<h4><a name=" islastmodified">islastmodified</a> </h4>
<p>Tests the last modified date of a resource. <em>Since Ant
<p>Tests the last modified date of a resource. <em>Since Ant
1.8.0</em></p>
1.8.0</em></p>
@@ -1065,7 +1069,7 @@ is redundant and will be ignored.</p>
</islastmodified>
</islastmodified>
</pre></blockquote>
</pre></blockquote>
<h4>resourceexists</h4>
<h4><a name=" resourceexists">resourceexists</a> </h4>
<p>Tests a resource for existance. <em>since Ant 1.8.0</em></p>
<p>Tests a resource for existance. <em>since Ant 1.8.0</em></p>