org.apache.tools.ant.taskdefs
Class WhichResource
- Cloneable
public class WhichResource
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" >
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
createClasspath
public Path createClasspath()
Adds a path to the classpath.
- a classpath to be configured.
setClass
public void setClass(String classname)
name the class to look for
classname - the name of the class to look for.
setClasspath
public void setClasspath(Path cp)
Set the classpath to be used for this compilation.
cp - the classpath to be used.
setClasspathRef
public void setClasspathRef(Reference r)
Set the classpath to use by reference.
r - a reference to an existing classpath.
setProperty
public void setProperty(String property)
the property to fill with the URL of the resource or class
property - the property to be set.
setResource
public void setResource(String resource)
name the resource to look for
resource - the name of the resource to look for.