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

Commit 0c157da

Browse files
committed
also add $USER_HOME to the list of expandable variables
1 parent c6432c9 commit 0c157da

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/universalJavaApplicationStub

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ if [ $exitcode -eq 0 ]; then
145145

146146
APP_PACKAGE="${AppPackageFolder}"
147147
JAVAROOT="${AppleJavaFolder}"
148+
USER_HOME="`eval echo ~`"
148149

149150
# read the MainClass name
150151
JVMMainClass=`/usr/libexec/PlistBuddy -c "print :Java:MainClass" "${InfoPlistFile}" 2> /dev/null`
@@ -154,6 +155,7 @@ if [ $exitcode -eq 0 ]; then
154155

155156
# read the ClassPath
156157
JVMClassPath=.`/usr/libexec/PlistBuddy -c "print :Java:ClassPath" "${InfoPlistFile}" 2> /dev/null | tr -d '\n' | sed -E 's/Array \{ *(.*) *\}/\1/g' | sed 's/^ */:/g' | sed 's/ */ /g' | sed 's/ = /=/g' | xargs`
158+
# expand variables $APP_PACKAGE, $JAVAROOT, $USER_HOME
157159
JVMClassPath=`eval "echo ${JVMClassPath}"`
158160

159161
# read the JVM Default Options

0 commit comments

Comments
 (0)