This repository was archived by the owner on Feb 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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`
You can’t perform that action at this time.
0 commit comments