public class AntWithFindResourceClassLoader extends AntClassLoader implements java.io.Closeable
AntClassLoader
doesn't implement findResource(String)
in any meaningful way, which breaks fast lookup. Implement it properly.Constructor and Description |
---|
AntWithFindResourceClassLoader(java.lang.ClassLoader parent,
boolean parentFirst) |
Modifier and Type | Method and Description |
---|---|
void |
addPathFiles(java.util.Collection<java.io.File> paths) |
void |
close() |
protected java.net.URL |
findResource(java.lang.String name) |
addJavaLibraries, addLoaderPackageRoot, addPathComponent, addPathElement, addPathFile, addSystemPackageRoot, buildFinished, buildStarted, cleanup, defineClassFromData, definePackage, definePackage, findClass, findResources, findResources, forceLoadClass, forceLoadSystemClass, getClasspath, getResource, getResourceAsStream, getResourceURL, initializeClass, isInPath, loadClass, log, messageLogged, resetThreadContextLoader, setClassPath, setIsolated, setParent, setParentFirst, setProject, setThreadContextLoader, subBuildFinished, subBuildStarted, targetFinished, targetStarted, taskFinished, taskStarted, toString
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public AntWithFindResourceClassLoader(java.lang.ClassLoader parent, boolean parentFirst)
public void addPathFiles(java.util.Collection<java.io.File> paths) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
protected java.net.URL findResource(java.lang.String name)
findResource
in class java.lang.ClassLoader