|
||||||||||
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.Definer
Base class for Taskdef and Typedef - does all the classpath handling and and class loading.
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 | |
Definer()
|
Method Summary | |
protected abstract void |
addDefinition(java.lang.String name,
java.lang.Class c)
this must be implemented by subclasses; it is the callback they will get to add a new definition of their type |
Path |
createClasspath()
Create the classpath to be used when searching for component being defined |
void |
execute()
Called by the project to let the task do its work. |
java.lang.String |
getClassname()
what is the classname we are definining? Can be null |
void |
setClassname(java.lang.String v)
the full class name of the object being defined. |
void |
setClasspath(Path classpath)
Set the classpath to be used when searching for component being defined |
void |
setClasspathRef(Reference r)
reference to a classpath to use when loading the files. |
void |
setFile(java.io.File file)
Name of the property file to load ant name/classname pairs from. |
void |
setLoaderRef(Reference r)
Use the reference to locate the loader. |
void |
setName(java.lang.String name)
Name of the property resource to load ant name/classname pairs from. |
void |
setResource(java.lang.String res)
Name of the property resource to load ant name/classname pairs from. |
void |
setReverseLoader(boolean reverseLoader)
Deprecated. stop using this attribute |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
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 Definer()
Method Detail |
public void setReverseLoader(boolean reverseLoader)
public void setClasspath(Path classpath)
classpath
- an Ant Path object containing the classpath.public Path createClasspath()
public void setClasspathRef(Reference r)
public void setLoaderRef(Reference r)
public void execute() throws BuildException
Task
execute
in class Task
BuildException
- if something goes wrong with the buildpublic void setFile(java.io.File file)
public void setResource(java.lang.String res)
public void setName(java.lang.String name)
public java.lang.String getClassname()
public void setClassname(java.lang.String v)
protected abstract void addDefinition(java.lang.String name, java.lang.Class c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |