|
1 | 1 | universalJavaApplicationStub |
2 | 2 | ============================ |
3 | 3 |
|
4 | | -[](https://github.com/tofi86/universalJavaApplicationStub/releases) [](https://gitter.im/tofi86/universalJavaApplicationStub?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
| 4 | +[](https://travis-ci.org/tofi86/universalJavaApplicationStub) [](https://github.com/tofi86/universalJavaApplicationStub/releases) [](https://gitter.im/tofi86/universalJavaApplicationStub?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
5 | 5 |
|
6 | 6 | A BASH based *JavaApplicationStub* for Java Apps on Mac OS X that works with both Apple's and Oracle's plist format. It is released under the [MIT License](https://github.com/tofi86/universalJavaApplicationStub/blob/master/LICENSE). |
7 | 7 |
|
@@ -43,29 +43,29 @@ How the script works |
43 | 43 |
|
44 | 44 | You don't need a native `JavaApplicationStub` file anymore. The Bash script needs to be executable – that's all. |
45 | 45 |
|
46 | | -The script reads JVM properties from `Info.plist` regardless of whether it's Apple or Oracle syntax and feeds them to a commandline `java` call like the following: |
| 46 | +The script reads JVM properties from `Info.plist` regardless of whether it's Apple or Oracle syntax and passes them to a `exec java` call like the following simplified: |
47 | 47 |
|
48 | 48 | ```Bash |
49 | 49 | # execute Java and set |
50 | 50 | # - classpath |
51 | 51 | # - splash image |
52 | 52 | # - dock icon |
53 | 53 | # - app name |
54 | | -# - JVM options |
55 | | -# - JVM default options |
| 54 | +# - JVM options / properties (-D) |
| 55 | +# - JVM default options (-X) |
56 | 56 | # - main class |
57 | | -# - main arguments |
58 | | -# - passthru arguments |
| 57 | +# - main class arguments |
| 58 | +# - passthrough arguments from Terminal or Drag'n'Drop to Finder icon |
59 | 59 | exec "${JAVACMD}" \ |
60 | 60 | -cp "${JVMClassPath}" \ |
61 | 61 | -splash:"${ResourcesFolder}/${JVMSplashFile}" \ |
62 | 62 | -Xdock:icon="${ResourcesFolder}/${CFBundleIconFile}" \ |
63 | 63 | -Xdock:name="${CFBundleName}" \ |
64 | | - ${JVMOptions:+$JVMOptions }\ |
65 | | - ${JVMDefaultOptions:+$JVMDefaultOptions }\ |
66 | | - ${JVMMainClass}\ |
67 | | - ${MainArgs:+ $MainArgs}\ |
68 | | - ${ArgsPassthru:+ $ArgsPassthru} |
| 64 | + ${JVMOptions} \ |
| 65 | + ${JVMDefaultOptions} \ |
| 66 | + ${JVMMainClass} \ |
| 67 | + ${MainArgsArr} \ |
| 68 | + ${ArgsPassthru} |
69 | 69 | ``` |
70 | 70 |
|
71 | 71 | It sets the classpath, the dock icon, the *AboutMenuName* (as Xdock parameter) and then every *JVMOptions*, *JVMDefaultOptions* or *JVMArguments* found in the `Info.plist` file. See the table below for more supported Plist keys. |
|
0 commit comments