Class loader related utility methods.
| Type | Name and description |
|---|---|
static void |
inject(java.lang.ClassLoader pClassLoader, org.gradle.api.file.FileCollection pFileCollection)Inject the files in a FileCollection into a ClassLoader, thus adding them to
the locations where the class loader looks for classes to load. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Inject the files in a FileCollection into a ClassLoader, thus adding them to
the locations where the class loader looks for classes to load.
If the specified class loader isn't a (subclass of) java.net.URLClassLoader, this
method is a no-op.
pClassLoader - The class loader to inject files into.pFileCollection - The files to inject.