Skip to content

Commit 43c25c8

Browse files
committed
U read JVM options from a file
1 parent 258e384 commit 43c25c8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/universalJavaApplicationStub

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ if [ $exitcode -eq 0 ]; then
237237
JVMVersion=$(plist_get_java ':JVMVersion' | xargs)
238238
# post processing of the version string follows below...
239239

240+
# read options file name
241+
JVMOptionsFile=$(plist_get_java ':JVMOptionsFile')
240242

241243
# read 'Info.plist' file in Oracle style
242244
else
@@ -291,8 +293,14 @@ else
291293
# read the Java version we want to find
292294
JVMVersion=$(plist_get ':JVMVersion' | xargs)
293295
# post processing of the version string follows below...
296+
297+
# read options file name
298+
JVMOptionsFile=$(plist_get ':JVMOptionsFile')
299+
294300
fi
295301

302+
# read JVM options from file
303+
[ -f $JVMOptionsFile ] && while read -r option; do JVMDefaultOptions+=" $option"; done <<< $(sed "/^#.*$/d" $JVMOptionsFile)
296304

297305
# (#75) check for undefined icons or icon names without .icns extension and prepare
298306
# an osascript statement for those cases when the icon can be shown in the dialog

0 commit comments

Comments
 (0)