org.apache.tools.ant.taskdefs
public 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" />
| Field Summary | |
|---|---|
| static String | SYSTEM_LOADER_REF |
| Constructor Summary | |
|---|---|
| Classloader()
Default constructor | |
| Method Summary | |
|---|---|
| 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(String name) Name of the loader. |
| void | setParentFirst(boolean b)
Set reverse attribute. |
| void | setParentName(String name)
Set the name of the parent. |
| void | setReset(boolean b)
Reset the classloader, if it already exists. |
| void | setReverse(boolean b)
Set reverse attribute. |
See Also: SYSTEM_LOADER_REF
Returns: a path for configuration.
Parameters: classpath an Ant Path object containing the classpath.
Parameters: pathRef a reference to a path.
Throws: BuildException if there is a problem.
Parameters: name the name of this loader
Parameters: b if true reverse the normal classloader lookup.
Parameters: name the parent name.
Parameters: b true if the loader is to be reset.
Parameters: b if true reverse the normal classloader lookup.