public class WhichResource extends Task
<whichresource resource="/log4j.properties" property="log4j.url" >
Constructor and Description |
---|
WhichResource() |
Modifier and Type | Method and Description |
---|---|
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 |
setClasspathRef(Reference r)
Set the classpath to use by reference.
|
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, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
public Path createClasspath()
public void execute() throws BuildException
execute
in class Task
BuildException
- on errorpublic void setClass(String classname)
classname
- the name of the class to look for.public void setClasspath(Path cp)
cp
- the classpath to be used.public void setClasspathRef(Reference r)
r
- a reference to an existing classpath.public void setProperty(String property)
property
- the property to be set.public void setResource(String resource)
resource
- the name of the resource to look for.