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

Commit 4fc22e0

Browse files
committed
Merge branch 'mguessan-patch-1' into develop
2 parents 5a4846c + 0615751 commit 4fc22e0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/universalJavaApplicationStub

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,19 @@ else
218218
JVMClassPath_RAW=`/usr/libexec/PlistBuddy -c "print JVMClassPath" "${InfoPlistFile}" 2> /dev/null`
219219
if [[ $JVMClassPath_RAW == *Array* ]] ; then
220220
JVMClassPath=.`/usr/libexec/PlistBuddy -c "print JVMClassPath" "${InfoPlistFile}" 2> /dev/null | grep " " | sed 's/^ */:/g' | tr -d '\n' | xargs`
221+
# expand variables $APP_PACKAGE, $JAVAROOT, $USER_HOME
222+
JVMClassPath=`eval "echo ${JVMClassPath}"`
223+
221224
elif [[ ! -z ${JVMClassPath_RAW} ]] ; then
222225
JVMClassPath=${JVMClassPath_RAW}
226+
# expand variables $APP_PACKAGE, $JAVAROOT, $USER_HOME
227+
JVMClassPath=`eval "echo ${JVMClassPath}"`
228+
223229
else
224230
#default: fallback to OracleJavaFolder
225231
JVMClassPath="${JavaFolder}/*"
232+
# Do NOT expand the default App.app/Contents/Java/* classpath (#42)
226233
fi
227-
# expand variables $APP_PACKAGE, $JAVAROOT, $USER_HOME
228-
JVMClassPath=`eval "echo ${JVMClassPath}"`
229234

230235
# read the JVM Default Options
231236
JVMDefaultOptions=`/usr/libexec/PlistBuddy -c "print :JVMDefaultOptions" "${InfoPlistFile}" 2> /dev/null | grep -o " \-.*" | tr -d '\n' | xargs`

0 commit comments

Comments
 (0)