Package and qualify standalone macOS designer with bundled runtime
This commit is contained in:
@@ -1,8 +1,27 @@
|
||||
package de.neitzel.fxdesigner.standalone;
|
||||
|
||||
/** Plain launcher supports the development classpath packaging of JavaFX. */
|
||||
/** Plain entry point shared by the packaged launcher and development runs. */
|
||||
public final class Launcher {
|
||||
public static void main(String[] args) {
|
||||
if (args.length == 1 && args[0].equals("--help")) {
|
||||
System.out.println(StandaloneOptions.USAGE);
|
||||
return;
|
||||
}
|
||||
if (args.length == 1 && args[0].equals("--version")) {
|
||||
System.out.println(
|
||||
"Neitzel FX Designer 0.1.0-SNAPSHOT; Java "
|
||||
+ System.getProperty("java.version")
|
||||
+ "; runtime "
|
||||
+ System.getProperty("java.home"));
|
||||
return;
|
||||
}
|
||||
try {
|
||||
StandaloneOptions.parse(java.util.List.of(args));
|
||||
} catch (IllegalArgumentException error) {
|
||||
System.err.println(error.getMessage() + "\n" + StandaloneOptions.USAGE);
|
||||
System.exit(2);
|
||||
return;
|
||||
}
|
||||
javafx.application.Application.launch(DesignerApplication.class, args);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user