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" >
Path | createClasspath() - Adds a path to the classpath.
|
void | execute() - execute it
|
void | setClass(String classname) - name the class to look for
|
void | setClasspath(Path cp) - Set the classpath to be used for this compilation.
|
void | setProperty(String property) - the property to fill with the URL of the resource or class
|
void | setResource(String resource) - name the resource to look for
|
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.
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.