You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by jg...@apache.org on 2011/05/24 20:41:18 UTC

svn commit: r1127211 - /ant/core/trunk/manual/Tasks/conditions.html

Author: jglick
Date: Tue May 24 18:41:18 2011
New Revision: 1127211

URL: http://svn.apache.org/viewvc?rev=1127211&view=rev
Log:
PR 51213: anchors.

Modified:
    ant/core/trunk/manual/Tasks/conditions.html

Modified: ant/core/trunk/manual/Tasks/conditions.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/manual/Tasks/conditions.html?rev=1127211&r1=1127210&r2=1127211&view=diff
==============================================================================
--- ant/core/trunk/manual/Tasks/conditions.html (original)
+++ ant/core/trunk/manual/Tasks/conditions.html Tue May 24 18:41:18 2011
@@ -40,13 +40,13 @@
 <a href="condition.html"><code>&lt;condition&gt;</code></a> and
 <a href="waitfor.html"><code>&lt;waitfor&gt;</code></a> tasks.</p>
 
-<h4>not</h4>
+<h4><a name="not">not</a></h4>
 <p>The <code>&lt;not&gt;</code> element expects exactly one other
 condition to be nested into this element, negating the result of the
 condition.  It doesn't have any attributes and accepts all nested
 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>&lt;and&gt;</code> element doesn't have any attributes and
 accepts an arbitrary number of conditions as nested elements - all
 nested elements of the condition task are supported.  This condition
@@ -56,7 +56,7 @@ evaluated in the order they have been sp
 semantics as the Java &amp;&amp; operator, as soon as one of the
 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>&lt;or&gt;</code> element doesn't have any attributes and
 accepts an arbitrary number of conditions as nested elements - all
 nested elements of the condition task are supported.  This condition
@@ -66,7 +66,7 @@ file.</p> <p>The <code>&lt;or&gt;</code>
 shortcut semantics as the Java || operator, as soon as one of the
 nested conditions is true, no other condition will be evaluated.</p>
 
-<h4>xor</h4>
+<h4><a name="xor">xor</a></h4>
 <p>The <code>&lt;xor&gt;</code> element performs an exclusive
 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
@@ -75,19 +75,19 @@ and <code>&lt;or&gt;</code> tests.
 It doesn't have any attributes and accepts all nested
 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
 href="available.html">Available</a> task, all attributes and nested
 elements of that task are supported, the property and value attributes
 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
 href="uptodate.html">Uptodate</a> task, all attributes and nested
 elements of that task are supported, the property and value attributes
 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
 defined attribute is tested and the result is true only if <i>all</i>
 the tests succeed.
@@ -137,7 +137,7 @@ the tests succeed.
   <li>openvms for OpenVMS</li>
 </ul>
 
-<h4>equals</h4>
+<h4><a name="equals">equals</a></h4>
 <p>Tests whether the two given values are equal.</p>
 <table border="1" cellpadding="2" cellspacing="0">
   <tr>
@@ -176,7 +176,7 @@ the tests succeed.
   </tr>
 </table>
 
-<h4>isset</h4>
+<h4><a name="isset">isset</a></h4>
 <p>Test whether a given property has been set in this project.</p>
 <table border="1" cellpadding="2" cellspacing="0">
   <tr>
@@ -191,13 +191,13 @@ the tests succeed.
   </tr>
 </table>
 
-<h4>checksum</h4>
+<h4><a name="checksum">checksum</a></h4>
 <p>This condition is identical to the <a href="checksum.html">Checksum</a>
 task, all attributes and nested elements of that task are supported,
 the property and overwrite attributes are redundant and will be
 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
 web server of the specified url. By default, HTTP responses errors
 of 400 or greater are viewed as invalid.</p>
@@ -231,7 +231,7 @@ of 400 or greater are viewed as invalid.
   </tr>
 </table>
 
-<h4>socket</h4>
+<h4><a name="socket">socket</a></h4>
 <p>The <code>socket</code> condition checks for the existence of a
 TCP/IP listener at the specified host and port.</p>
 <table border="1" cellpadding="2" cellspacing="0">
@@ -252,7 +252,7 @@ TCP/IP listener at the specified host an
   </tr>
 </table>
 
-<h4>filesmatch</h4>
+<h4><a name="filesmatch">filesmatch</a></h4>
 <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.
 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 
   </tr>
 </table>
 
-<h4>contains</h4>
+<h4><a name="contains">contains</a></h4>
 <p>Tests whether a string contains another one.</p>
 <table border="1" cellpadding="2" cellspacing="0">
   <tr>
@@ -312,7 +312,7 @@ or the filenames match the answer is so 
   </tr>
 </table>
 
-<h4>istrue</h4>
+<h4><a name="istrue">istrue</a></h4>
 <p>Tests whether a string equals any of the ant definitions of true,
 that is "true","yes", or "on"</p>
 <table border="1" cellpadding="2" cellspacing="0">
@@ -332,7 +332,7 @@ that is "true","yes", or "on"</p>
 &lt;istrue value=&quot;false&quot;/&gt;
 </pre></blockquote>
 
-<h4>isfalse</h4>
+<h4><a name="isfalse">isfalse</a></h4>
 <p>Tests whether a string is not true, the negation of &lt;istrue&gt;
 </p>
 <table border="1" cellpadding="2" cellspacing="0">
@@ -352,7 +352,7 @@ that is "true","yes", or "on"</p>
 &lt;isfalse value=&quot;false&quot;/&gt;
 </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
 - 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>
   </tr>
 </table>
-  <h4>issigned</h4>
+
+<h4><a name="issigned">issigned</a></h4>
   <p>
     Test whether a jarfile is signed.
     If the name of the
@@ -409,7 +410,8 @@ that is "true","yes", or "on"</p>
     <td valign="top" align="center">No</td>
   </tr>
   </table>
-  <h4>isfileselected</h4>
+
+<h4><a name="isfileselected">isfileselected</a></h4>
   <p>
     Test whether a file passes an embedded
     <a href="../Types/selectors.html">selector</a>.
@@ -445,7 +447,8 @@ that is "true","yes", or "on"</p>
   &lt;date datetime="06/28/2000 2:02 pm" when="equal"/&gt;
 &lt;/isfileselected&gt;
 </pre></blockquote>
-<h4>typefound</h4>
+
+<h4><a name="typefound">typefound</a></h4>
 
 <p>Test whether a given type is defined, and that
 its implementation class can be loaded. Types include
@@ -481,7 +484,7 @@ tasks, datatypes, scriptdefs, macrodefs 
 &lt;typefound uri="antlib:org.apache.maven.artifact.ant" name="artifact"/&gt;
 </pre></blockquote>
 
-<h4>scriptcondition</h4>
+<h4><a name="scriptcondition">scriptcondition</a></h4>
 
 <p>Evaluate a condition based on a script in any
 <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 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
 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.
 
-<h4>isreachable</h4>
+<h4><a name="isreachable">isreachable</a></h4>
 
 <p>Uses Java1.5+ networking APIs to probe for a (remote) system being
 reachable. Exactly what probe mechanisms are used is an implementation
@@ -700,7 +703,7 @@ Probe for the maven repository being rea
 Probe for the maven repository being reachable using the hostname, ten second timeout..
 </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.
   It is used to test the length of a string or one or more files.
   <b>Since Ant 1.6.3</b>
@@ -716,7 +719,7 @@ Probe for the maven repository being rea
 </pre></blockquote>
 <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
 <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 rea
   </tr>
 </table>
 
-<h4>resourcecount</h4>
+<h4><a name="resourcecount">resourcecount</a></h4>
 <p>This condition is a facet of the
   <a href="resourcecount.html">ResourceCount</a> task.
   It is used to test the size of a 
@@ -747,7 +750,7 @@ Probe for the maven repository being rea
 </pre></blockquote>
 <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
 "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
@@ -774,7 +777,7 @@ must match. <b>Since Ant 1.7</b>
   </tr>
 </table>
 
-<h4>resourcecontains</h4>
+<h4><a name="resourcecontains">resourcecontains</a></h4>
 <p>Tests whether a resource contains a given (sub)string.</p>
 <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>
@@ -808,7 +811,7 @@ must match. <b>Since Ant 1.7</b>
   </tr>
 </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 
     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>
 
-<h4>matches</h4>
+<h4><a name="matches">matches</a></h4>
 
 <p>
   Test if the specified string matches the specified regular
@@ -970,13 +973,14 @@ must match. <b>Since Ant 1.7</b>
            singleline="false"/&gt;
 &lt;/au:assertFalse&gt;
 </pre></blockquote>
-<h4>antversion</h4>
+
+<h4><a name="antversion">antversion</a></h4>
 <p>This condition is identical to the <a
 href="antversion.html">Antversion</a> task, all attributes are supported, the property attribute
 is redundant and will be ignored.</p>
 
 
-<h4>hasfreespace</h4>
+<h4><a name="hasfreespace">hasfreespace</a></h4>
 
 <p>
   Tests a partition to see if there is enough space.
@@ -1015,7 +1019,7 @@ is redundant and will be ignored.</p>
 &lt;hasfreespace partition="c:" needed="100M"/&gt;
 </pre></blockquote>
 
-<h4>islastmodified</h4>
+<h4><a name="islastmodified">islastmodified</a></h4>
 
 <p>Tests the last modified date of a resource.  <em>Since Ant
 1.8.0</em></p>
@@ -1065,7 +1069,7 @@ is redundant and will be ignored.</p>
 &lt;/islastmodified&gt;
 </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>