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 <classpath> element, which can be used to specify + a classpath. +</p> +<pre> + <hasmethod classname="java.util.ArrayList" method="trimToSize" /> +</pre> + +<p>Looks for the method trimToSize in the ArrayList class.</p> + + <hr> -<p align="center">Copyright © 2001-2005 Apache Software +<p align="center">Copyright © 2001-2006 Apache Software Foundation. All rights Reserved.</p> </body> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]