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

Commit b782b01

Browse files
committed
Merge branch 'develop'
2 parents c42686b + d8ec559 commit b782b01

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
ChangeLog
22
---------
33

4+
### v2.0.2 (2017-04-23)
5+
* Bugfix: do NOT expand/evaluate the default Oracle Classpath (`App.app/Contents/Java/*`) (PR #42, Thanks to @mguessan for his contribution)
6+
47
### v2.0.1 (2016-11-27)
58
* Bugfix for regression in argument passthru introduced in 2.0.0 (fixes #39)
69

src/universalJavaApplicationStub

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# #
1414
# @author Tobias Fischer #
1515
# @url https://github.com/tofi86/universalJavaApplicationStub #
16-
# @date 2016-11-27 #
17-
# @version 2.0.1 #
16+
# @date 2017-11-27 #
17+
# @version 2.0.2 #
1818
# #
1919
# #
2020
##################################################################################
@@ -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`
@@ -474,7 +479,7 @@ elif [ -f "$JAVACMD" ] && [ -x "$JAVACMD" ] ; then
474479

475480
# enable drag&drop to the dock icon
476481
export CFProcessPath="$0"
477-
482+
478483
# remove Apples ProcessSerialNumber from passthru arguments (#39)
479484
if [[ $@ == -psn* ]] ; then
480485
ArgsPassthru=""

0 commit comments

Comments
 (0)