org.fcrepo.server.utilities.rebuild.cli
Class CLILoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.fcrepo.server.utilities.rebuild.cli.CLILoader
public class CLILoader
- extends URLClassLoader
A proxy for various command-line entry-points.
It addresses the following problems with Mavenized builds:
Java 5 doesn't support wildcard classpath entries.
Windows has a length limitation for command arguments that prevents building a classpath.
The endorsed standards override allows specification of a directory, but classes loaded
thus cannot use calls to .getClassLoader() to load resources.
- Author:
- Benjamin Armintor
- See Also:
Rebuild,
Class.getClassLoader()
|
Method Summary |
static void |
main(String[] args)
main(String[]) assumes access to a system property
("fedora.web.inf.lib") that refers to a directory containing all the
jar libraries needed to invoke the main class. |
| Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLILoader
public CLILoader(URL[] paths)
CLILoader
public CLILoader(URL[] paths,
ClassLoader parent)
main
public static void main(String[] args)
main(String[]) assumes access to a system property
("fedora.web.inf.lib") that refers to a directory containing all the
jar libraries needed to invoke the main class.
Usage:
args[0]:
args[1:n] : remaining arguments to be passed to class indicated in args[0]
Copyright © 2011 DuraSpace. All Rights Reserved.