org.apache.tools.ant.taskdefs
public class WhichResource extends Task
<whichresource resource="/log4j.properties" property="log4j.url" >
Since: Ant 1.6
UNKNOWN: name="oneof" description="Exactly one of these two"
Method Summary | |
---|---|
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 |
Returns: a classpath to be configured.
Throws: BuildException on error
Parameters: classname the name of the class to look for.
UNKNOWN: group="oneof"
Parameters: cp the classpath to be used.
Parameters: r a reference to an existing classpath.
Since: Ant 1.7.1
Parameters: property the property to be set.
UNKNOWN: group="required"
Parameters: resource the name of the resource to look for.
UNKNOWN: group="oneof"