public class AntClassLoader5 extends AntClassLoader implements java.io.Closeable
| Constructor and Description |
|---|
AntClassLoader5(java.lang.ClassLoader parent,
Project project,
Path classpath,
boolean parentFirst)
Creates a classloader for the given project using the classpath given.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.util.Enumeration |
getResources(java.lang.String name) |
addJavaLibraries, addLoaderPackageRoot, addPathComponent, addPathElement, addPathFile, addSystemPackageRoot, buildFinished, buildStarted, cleanup, defineClassFromData, definePackage, definePackage, findClass, findResources, findResources, forceLoadClass, forceLoadSystemClass, getClasspath, getConfiguredParent, getNamedResources, getResource, getResourceAsStream, getResourceURL, initializeClass, isInPath, loadClass, log, messageLogged, newAntClassLoader, resetThreadContextLoader, setClassPath, setIsolated, setParent, setParentFirst, setProject, setThreadContextLoader, subBuildFinished, subBuildStarted, targetFinished, targetStarted, taskFinished, taskStarted, toStringclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic AntClassLoader5(java.lang.ClassLoader parent,
Project project,
Path classpath,
boolean parentFirst)
parent - The parent classloader to which unsatisfied loading
attempts are delegated. May be null,
in which case the classloader which loaded this
class is used as the parent.project - The project to which this classloader is to belong.
Must not be null.classpath - the classpath to use to load the classes.
May be null, in which case no path
elements are set up to start with.parentFirst - If true, indicates that the parent
classloader should be consulted before trying to
load the a class through this loader.public java.util.Enumeration getResources(java.lang.String name)
throws java.io.IOException
getResources in class java.lang.ClassLoaderjava.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable