|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.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" >
| Field Summary |
| Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
| Constructor Summary | |
WhichResource()
|
|
| Method Summary | |
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 |
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 |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WhichResource()
| Method Detail |
public void setClasspath(Path cp)
cp - the classpath to be used.public Path createClasspath()
public void execute()
throws BuildException
execute in class TaskBuildExceptionpublic 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||