ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r419978 - /ant/core/trunk/docs/manual/CoreTasks/conditions.html
Date Fri, 07 Jul 2006 20:46:17 GMT
Author: stevel
Date: Fri Jul  7 13:46:16 2006
New Revision: 419978

URL: http://svn.apache.org/viewvc?rev=419978&view=rev
Log:
delete spurious letter F; update copyright

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?rev=419978&r1=419977&r2=419978&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/CoreTasks/conditions.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/conditions.html Fri Jul  7 13:46:16 2006
@@ -706,8 +706,66 @@
   </tr>
 </table>
 
+<h4>hasmethod</h4>
+
+<p> Tests for a class having a method or field. If the class is not found 
+    or fails to load, the build fails. 
+    
+    <b>Since Ant 1.7</b>
+</p>
+
+<table border="1" cellpadding="2" cellspacing="0">
+    <tr>
+        <td width="12%" valign="top"><b>Attribute</b></td>
+        <td width="78%" valign="top"><b>Description</b></td>
+        <td width="10%" valign="top"><b>Required</b></td>
+    </tr>
+    <tr>
+        <td valign="top">classname</td>
+        <td valign="top">name of the class to load</td>
+        <td align="center">yes</td>
+    </tr>
+    <tr>
+        <td valign="top">field</td>
+        <td valign="top">name of a field to look for</td>
+        <td align="center">one of field or method</td>
+    </tr>
+    <tr>
+        <td valign="top">method</td>
+        <td valign="top">name of a method to look for</td>
+        <td align="center">one of field or method</td>
+    </tr>
+    
+    <tr>
+        <td valign="top">ignoreSystemClasses</td>
+        <td valign="top">should system classes be ignored?</td>
+        <td align="center">No -default is false</td>
+    </tr>
+    <tr>
+        <td valign="top">classpath</td>
+        <td valign="top">a class path</td>
+        <td align="center">No</td>
+    </tr>
+    <tr>
+        <td valign="top">classpathref</td>
+        <td valign="top">reference to a class path</td>
+        <td align="center">No</td>
+    </tr>
+</table>
+
+<p>
+    There is also a nested &lt;classpath&gt; element, which can be used to specify

+    a classpath.
+</p>
+<pre>
+    &lt;hasmethod classname="java.util.ArrayList" method="trimToSize"  /&gt;
+</pre>
+
+<p>Looks for the method trimToSize in the ArrayList class.</p>
+
+
 <hr>
-<p align="center">Copyright &copy; 2001-2005 Apache Software
+<p align="center">Copyright &copy; 2001-2006 Apache Software
 Foundation. All rights Reserved.</p>
 
 </body>



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


Mime
View raw message