Methods Summary |
---|
public org.apache.tools.ant.types.Path | createClasspath()Create the classpath to be used when searching for component being
defined.
return getDelegate().createClasspath();
|
protected java.lang.ClassLoader | createLoader()create a classloader for this definition
if (getAntlibClassLoader() != null && cpDelegate == null) {
return getAntlibClassLoader();
}
if (createdLoader == null) {
createdLoader = getDelegate().getClassLoader();
// need to load Task via system classloader or the new
// task we want to define will never be a Task but always
// be wrapped into a TaskAdapter.
((AntClassLoader) createdLoader)
.addSystemPackageRoot("org.apache.tools.ant");
}
return createdLoader;
|
public org.apache.tools.ant.types.Path | getClasspath()
return getDelegate().getClasspath();
|
public java.lang.String | getClasspathId()Returns the class path id of the class path delegate.
return getDelegate().getClassLoadId();
|
private ClasspathUtils.Delegate | getDelegate()
if (cpDelegate == null) {
cpDelegate = ClasspathUtils.getDelegate(this);
}
return cpDelegate;
|
public java.lang.String | getLoaderId()Returns the loader id of the class path Delegate.
return getDelegate().getClassLoadId();
|
protected boolean | hasCpDelegate()Check if classpath attributes have been set.
(to be called before getCpDelegate() is used.
return cpDelegate != null;
|
public void | init()
super.init();
|
public boolean | isReverseLoader()
return getDelegate().isReverseLoader();
|
public void | setClasspath(org.apache.tools.ant.types.Path classpath)Set the classpath to be used when searching for component being defined.
getDelegate().setClasspath(classpath);
|
public void | setClasspathRef(org.apache.tools.ant.types.Reference r)Set a reference to a classpath to use when loading the files.
To actually share the same loader, set loaderref as well
getDelegate().setClasspathref(r);
|
public void | setLoaderRef(org.apache.tools.ant.types.Reference r)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.
getDelegate().setLoaderRef(r);
|
public void | setReverseLoader(boolean reverseLoader)
getDelegate().setReverseLoader(reverseLoader);
log("The reverseloader attribute is DEPRECATED. It will be removed",
Project.MSG_WARN);
|