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

Commit c42686b

Browse files
committed
Merge branch 'develop'
2 parents 7f63a2d + 5a4846c commit c42686b

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
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.1 (2016-11-27)
5+
* Bugfix for regression in argument passthru introduced in 2.0.0 (fixes #39)
6+
47
### v2.0.0 (2016-11-20)
58
* Localization of messages (English, German, French) (fixes #27 / PR #30, Thanks to @ebourg for his contribution)
69
* Improve the version of Java reported in the error messages (fixes #28)

src/universalJavaApplicationStub

Lines changed: 10 additions & 3 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-20 #
17-
# @version 2.0.0 #
16+
# @date 2016-11-27 #
17+
# @version 2.0.1 #
1818
# #
1919
# #
2020
##################################################################################
@@ -474,6 +474,13 @@ elif [ -f "$JAVACMD" ] && [ -x "$JAVACMD" ] ; then
474474

475475
# enable drag&drop to the dock icon
476476
export CFProcessPath="$0"
477+
478+
# remove Apples ProcessSerialNumber from passthru arguments (#39)
479+
if [[ $@ == -psn* ]] ; then
480+
ArgsPassthru=""
481+
else
482+
ArgsPassthru=$@
483+
fi
477484

478485
# change to Working Directory based upon Apple/Oracle Plist info
479486
cd "${WorkingDirectory}"
@@ -495,7 +502,7 @@ elif [ -f "$JAVACMD" ] && [ -x "$JAVACMD" ] ; then
495502
${JVMDefaultOptions:+$JVMDefaultOptions }\
496503
${JVMMainClass}\
497504
${JVMArguments:+ $JVMArguments}\
498-
"$@"
505+
${ArgsPassthru:+ $ArgsPassthru}
499506

500507

501508
else

0 commit comments

Comments
 (0)