Skip to content

Commit ba80b38

Browse files
committed
Oracle JVMDefaultOptions key: expand variables $APP_PACKAGE, $APP_ROOT, $JAVAROOT, $USER_HOME // fixes tofi86#99
1 parent 14f3b0f commit ba80b38

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/universalJavaApplicationStub

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,11 @@ else
285285
# Do NOT expand the default 'AppName.app/Contents/Java/*' classpath (#42)
286286
fi
287287

288-
# read the JVM Default Options
288+
# read the JVM Default Options by parsing the :JVMDefaultOptions <dict>
289+
# and pulling all <string> values starting with a dash (-)
289290
JVMDefaultOptions=$(plist_get ':JVMDefaultOptions' | grep -o " \-.*" | tr -d '\n' | xargs)
291+
# expand variables $APP_PACKAGE, $APP_ROOT, $JAVAROOT, $USER_HOME (#99)
292+
JVMDefaultOptions=$(eval echo "${JVMDefaultOptions}")
290293

291294
# read the Main Arguments from JVMArguments key as an array and retain spaces (see #46 for naming details)
292295
IFS=$'\t\n'

0 commit comments

Comments
 (0)