Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 0ea779c

Browse files
committed
update README.md with simplified java exec example
1 parent e2efd2c commit 0ea779c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,29 @@ How the script works
4343

4444
You don't need a native `JavaApplicationStub` file anymore. The Bash script needs to be executable – that's all.
4545

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:
4747

4848
```Bash
4949
# execute Java and set
5050
# - classpath
5151
# - splash image
5252
# - dock icon
5353
# - app name
54-
# - JVM options
55-
# - JVM default options
54+
# - JVM options / properties (-D)
55+
# - JVM default options (-X)
5656
# - main class
57-
# - main arguments
58-
# - passthru arguments
57+
# - main class arguments
58+
# - passthrough arguments from Terminal or Drag'n'Drop to Finder icon
5959
exec "${JAVACMD}" \
6060
-cp "${JVMClassPath}" \
6161
-splash:"${ResourcesFolder}/${JVMSplashFile}" \
6262
-Xdock:icon="${ResourcesFolder}/${CFBundleIconFile}" \
6363
-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}
6969
```
7070

7171
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

Comments
 (0)