java.lang.Cloneablepublic class Classloader extends Task
<path id="ant.deps" >
<fileset dir="myDir" >
<include name="junit.jar, bsf.jar, js.jar, etc"/>
</fileset>
</path>
<classloader pathRef="ant.deps" />
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
SYSTEM_LOADER_REF |
description, location, project| Constructor | Description |
|---|---|
Classloader() |
| Modifier and Type | Method | Description |
|---|---|---|
Path |
createClasspath() |
Create a classpath.
|
void |
execute() |
do the classloader manipulation.
|
void |
setClasspath(Path classpath) |
Set the classpath to be used when searching for component being defined
|
void |
setClasspathRef(Reference pathRef) |
Specify which path will be used.
|
void |
setName(java.lang.String name) |
Name of the loader.
|
void |
setParentFirst(boolean b) |
Set reverse attribute.
|
void |
setParentName(java.lang.String name) |
Set the name of the parent.
|
void |
setReset(boolean b) |
Reset the classloader, if it already exists.
|
void |
setReverse(boolean b) |
Deprecated.
use setParentFirst with a negated argument instead
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setName(java.lang.String name)
name - the name of this loaderpublic void setReset(boolean b)
b - true if the loader is to be reset.@Deprecated public void setReverse(boolean b)
b - if true reverse the normal classloader lookup.public void setParentFirst(boolean b)
b - if true reverse the normal classloader lookup.public void setParentName(java.lang.String name)
name - the parent name.public void setClasspathRef(Reference pathRef) throws BuildException
pathRef - a reference to a path.BuildException - if there is a problem.public void setClasspath(Path classpath)
classpath - an Ant Path object containing the classpath.public Path createClasspath()