| Modifier | Constructor and Description |
|---|---|
protected |
Capsule(JarFile jar,
String[] args) |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
buildArgs(String[] args)
Returns a list of command line arguments to pass to the application.
|
protected List<String> |
buildJVMArgs(List<String> cmdLine)
Returns a list of JVM arguments.
|
protected Map<String,String> |
buildSystemProperties(List<String> cmdLine)
Returns a map of system properties (property-value pairs).
|
protected List<String> |
getDependencies()
Returns a list of dependencies, each in the format
groupId:artifactId:version[:classifier] (classifier is optional) |
protected List<String> |
getNativeDependenciesAndRename()
Returns a list of dependencies, each in the format
groupId:artifactId:version[:classifier][,renameTo]
(classifier and renameTo are optional) |
protected static boolean |
isLinux() |
protected static boolean |
isMac() |
protected static boolean |
isWindows() |
static void |
main(String[] args)
Launches the application
|
void |
run() |
protected List<String> |
stripNativeDependencies(List<String> nativeDepsAndRename) |
public static void main(String[] args)
args - the program's command-line argumentsprotected List<String> buildArgs(String[] args)
args - The command line arguments passed to the capsule at launchprotected Map<String,String> buildSystemProperties(List<String> cmdLine)
cmdLine - the list of JVM arguments passed to the capsule at launchprotected List<String> getNativeDependenciesAndRename()
groupId:artifactId:version[:classifier][,renameTo]
(classifier and renameTo are optional)protected final List<String> stripNativeDependencies(List<String> nativeDepsAndRename)
protected List<String> buildJVMArgs(List<String> cmdLine)
cmdLine - the list of JVM arguments passed to the capsule at launchprotected static boolean isWindows()
protected static boolean isMac()
protected static boolean isLinux()