| |
|
| org.apache.tools.ant.taskdefs.AntlibDefinition org.apache.tools.ant.taskdefs.DefBase
All known Subclasses: org.apache.tools.ant.taskdefs.optional.script.ScriptDef, org.apache.tools.ant.taskdefs.Definer,
DefBase | abstract public class DefBase extends AntlibDefinition (Code) | | Base class for Definitions handling uri and class loading.
(This was part of Definer)
since: Ant 1.6 |
createClasspath | public Path createClasspath()(Code) | | Create the classpath to be used when searching for component being
defined.
the classpath of the this definition |
createLoader | protected ClassLoader createLoader()(Code) | | create a classloader for this definition
the classloader from the cpDelegate |
getClasspath | public Path getClasspath()(Code) | | the classpath for this definition |
getClasspathId | public String getClasspathId()(Code) | | Returns the class path id of the class path delegate.
the class path id |
getLoaderId | public String getLoaderId()(Code) | | Returns the loader id of the class path Delegate.
the loader id |
hasCpDelegate | protected boolean hasCpDelegate()(Code) | | Check if classpath attributes have been set.
(to be called before getCpDelegate() is used.
true if cpDelegate has been created. |
isReverseLoader | public boolean isReverseLoader()(Code) | | the reverse loader attribute of the classpath delegate. |
setClasspath | public void setClasspath(Path classpath)(Code) | | Set the classpath to be used when searching for component being defined.
Parameters: classpath - an Ant Path object containing the classpath. |
setClasspathRef | public void setClasspathRef(Reference r)(Code) | | Set a reference to a classpath to use when loading the files.
To actually share the same loader, set loaderref as well
Parameters: r - the reference to the classpath |
setLoaderRef | public void setLoaderRef(Reference r)(Code) | | Use the reference to locate the loader. If the loader is not
found, the specified classpath will be used and registered
with the specified name.
This allows multiple taskdef/typedef to use the same class loader,
so they can be used together, eliminating the need to
put them in the CLASSPATH.
Parameters: r - the reference to locate the loader. since: Ant 1.5 |
setReverseLoader | public void setReverseLoader(boolean reverseLoader)(Code) | | Parameters: reverseLoader - if true a delegated loader will take precedence overthe parent |
|
|
|