| org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.WhichResource
WhichResource | public class WhichResource extends Task (Code) | | Find a class or resource on the supplied classpath, or the
system classpath if none is supplied. The named property is set if
the item can be found. For example
<whichresource resource="/log4j.properties"
property="log4j.url" >
since: Ant 1.6 |
createClasspath | public Path createClasspath()(Code) | | Adds a path to the classpath.
a classpath to be configured. |
setClass | public void setClass(String classname)(Code) | | name the class to look for
Parameters: classname - the name of the class to look for. |
setClasspath | public void setClasspath(Path cp)(Code) | | Set the classpath to be used for this compilation.
Parameters: cp - the classpath to be used. |
setProperty | public void setProperty(String property)(Code) | | the property to fill with the URL of the resource or class
Parameters: property - the property to be set. |
setResource | public void setResource(String resource)(Code) | | name the resource to look for
Parameters: resource - the name of the resource to look for. |
|
|