public class BatheBooter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BATHE_EXTERNAL_CLASSPATH |
protected boolean |
foundClassDir |
protected File |
jar |
protected String[] |
passingArgs |
protected String |
runnerClass |
| Constructor and Description |
|---|
BatheBooter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attemptToGetJumpClassFromManifest() |
protected URLClassLoader |
createUrlClassLoader(File war,
List<String> libraries)
Creates a URL class loader out of the specified library offsets within the war file
|
protected List<String> |
determineJarOffsets(File war)
Extracts out the jars that are embedded in subdirectories and sets them up in a list to allow priority sorting and
construction of a URLClassPath.
|
void |
exec(ClassLoader loader,
File runnable,
String runnerClass,
String[] args)
Runs the main runner class in the specified class loader, passing in
the WAR being run as well as the specified command line arguments.
|
protected File |
getRunFile()
This may end up needing to be more sophisticated if there is more than one jar on the command line.
|
protected URL[] |
getSystemClassPath()
Returns the URLs that make up the system class path.
|
static void |
main(String[] args) |
protected void |
parseCommandLine(String[] args) |
void |
run(String[] args) |
void |
runWithLoader(URLClassLoader loader,
File runnable,
String runnerClass,
String[] args) |
protected static final String BATHE_EXTERNAL_CLASSPATH
protected String runnerClass
protected File jar
protected String[] passingArgs
protected boolean foundClassDir
protected void parseCommandLine(String[] args)
protected void attemptToGetJumpClassFromManifest()
public static void main(String[] args) throws IOException
IOExceptionpublic void run(String[] args) throws IOException
IOExceptionpublic void runWithLoader(URLClassLoader loader, File runnable, String runnerClass, String[] args) throws IOException
IOExceptionpublic void exec(ClassLoader loader, File runnable, String runnerClass, String[] args)
protected URLClassLoader createUrlClassLoader(File war, List<String> libraries)
protected List<String> determineJarOffsets(File war)
protected File getRunFile()
protected URL[] getSystemClassPath()
Copyright © 2014. All Rights Reserved.