public class WhichResource extends Task
<whichresource resource="/log4j.properties" property="log4j.url" >
description, location, project
Constructor and Description |
---|
WhichResource() |
Modifier and Type | Method and Description |
---|---|
Path |
createClasspath()
Adds a path to the classpath.
|
void |
execute()
execute it
|
void |
setClass(java.lang.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(java.lang.String property)
the property to fill with the URL of the resource or class
|
void |
setResource(java.lang.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 void setClasspath(Path cp)
cp
- the classpath to be used.public Path createClasspath()
public void setClasspathRef(Reference r)
r
- a reference to an existing classpath.public void execute() throws BuildException
execute
in class Task
BuildException
- on errorpublic void setResource(java.lang.String resource)
resource
- the name of the resource to look for.public void setClass(java.lang.String classname)
classname
- the name of the class to look for.public void setProperty(java.lang.String property)
property
- the property to be set.