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 +
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 +
+ +Attribute | +Description | +Required | +
classname | +name of the class to load | +yes | +
field | +name of a field to look for | +one of field or method | +
method | +name of a method to look for | +one of field or method | +
ignoreSystemClasses | +should system classes be ignored? | +No -default is false | +
classpath | +a class path | +No | +
classpathref | +reference to a class path | +No | +
+ 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.