public class JarLauncher extends ExecutableArchiveLauncher
Launcher
for JAR based archives. This launcher assumes that dependency jars are
included inside a /lib
directory.Constructor and Description |
---|
JarLauncher() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isNestedArchive(Archive.Entry entry)
Determine if the specified
JarEntry is a nested item that should be added
to the classpath. |
static void |
main(String[] args) |
protected void |
postProcessClassPathArchives(List<Archive> archives)
Called to post-process archive entries before they are used.
|
createClassLoader, getArchive, getClassPathArchives, getMainClass
createArchive, createClassLoader, createMainMethodRunner, launch, launch
protected boolean isNestedArchive(Archive.Entry entry)
ExecutableArchiveLauncher
JarEntry
is a nested item that should be added
to the classpath. The method is called once for each entry.isNestedArchive
in class ExecutableArchiveLauncher
entry
- the jar entrytrue
if the entry is a nested item (jar or folder)protected void postProcessClassPathArchives(List<Archive> archives) throws Exception
ExecutableArchiveLauncher
postProcessClassPathArchives
in class ExecutableArchiveLauncher
archives
- the archivesException
public static void main(String[] args)
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.