| Modifier | Constructor and Description |
|---|---|
protected |
Capsule(Path jarFile,
Path cacheDir)
Constructs a capsule from the given JAR file
|
| 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<Path> |
buildBootClassPath()
Compiles and returns the application's boot classpath as a list of paths.
|
protected List<Path> |
buildBootClassPathA()
Compiles and returns the paths to be appended to the application's boot classpath.
|
protected List<Path> |
buildBootClassPathP()
Compiles and returns the paths to be prepended to the application's boot classpath.
|
protected List<Path> |
buildClassPath()
Compiles and returns the application's classpath as a list of paths.
|
protected void |
buildEnvironmentVariables(Map<String,String> env)
Returns a map of environment variables (property-value pairs).
|
protected List<String> |
buildJVMArgs()
Returns a list of JVM arguments.
|
protected Map<String,String> |
buildSystemProperties()
Returns a map of system properties (property-value pairs).
|
protected Object |
clone() |
protected Manifest |
configureManifest(Manifest manifest) |
boolean |
equals(Object obj) |
protected String |
expand(String str)
Expands occurrences of
$VARNAME in attribute values. |
protected String |
getAppId() |
protected String |
getAttribute(String attr) |
protected List<String> |
getDependencies()
Returns a list of dependencies, each in the format
groupId:artifactId:version[:classifier] (classifier is optional) |
protected List<String> |
getListAttribute(String attr) |
protected Map<String,String> |
getMapAttribute(String attr,
String defaultValue) |
protected List<String> |
getNativeDependenciesAndRename()
Returns a list of dependencies, each in the format
groupId:artifactId:version[:classifier][,renameTo]
(classifier and renameTo are optional) |
protected boolean |
hasAttribute(String attr) |
int |
hashCode() |
protected static boolean |
isMac() |
protected static boolean |
isUnix() |
protected static boolean |
isWindows() |
protected static List<Path> |
listDir(Path dir) |
static void |
main(String[] args)
Launches the application
|
void |
run() |
protected List<String> |
stripNativeDependencies(List<String> nativeDepsAndRename) |
String |
toString() |
public static final void main(String[] args)
args - the program's command-line argumentsprotected Manifest configureManifest(Manifest manifest) throws IOException
IOExceptionprotected List<String> buildArgs(String[] args)
args - The command line arguments passed to the capsule at launchprotected void buildEnvironmentVariables(Map<String,String> env)
env - the current environmentprotected String getAppId()
protected List<Path> buildClassPath()
protected List<String> getDependencies()
groupId:artifactId:version[:classifier] (classifier is optional)protected List<Path> buildBootClassPath()
protected List<Path> buildBootClassPathP()
protected List<Path> buildBootClassPathA()
protected Map<String,String> buildSystemProperties()
protected List<String> getNativeDependenciesAndRename()
groupId:artifactId:version[:classifier][,renameTo]
(classifier and renameTo are optional)protected final List<String> stripNativeDependencies(List<String> nativeDepsAndRename)
protected final boolean hasAttribute(String attr)
protected final Map<String,String> getMapAttribute(String attr, String defaultValue)
protected static final boolean isWindows()
protected static final boolean isMac()
protected static final boolean isUnix()
protected String expand(String str)
$VARNAME in attribute values.str - the original stringprotected final Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException