diff --git a/docs/manual/CoreTasks/conditions.html b/docs/manual/CoreTasks/conditions.html index 0ec0ae12c..627e0472b 100644 --- a/docs/manual/CoreTasks/conditions.html +++ b/docs/manual/CoreTasks/conditions.html @@ -706,8 +706,66 @@ must match. Since Ant 1.7 +

hasmethod

+ +

Tests for a class having a method or field. If the class is not found + or fails to load, the build fails. + + Since Ant 1.7 +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
classnamename of the class to loadyes
fieldname of a field to look forone of field or method
methodname of a method to look forone of field or method
ignoreSystemClassesshould system classes be ignored?No -default is false
classpatha class pathNo
classpathrefreference to a class pathNo
+ +

+ There is also a nested <classpath> element, which can be used to specify + a classpath. +

+
+    <hasmethod classname="java.util.ArrayList" method="trimToSize"  />
+
+ +

Looks for the method trimToSize in the ArrayList class.

+ +
-

Copyright © 2001-2005 Apache Software +

Copyright © 2001-2006 Apache Software Foundation. All rights Reserved.