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

Commit 3bbfe8d

Browse files
committed
Merge branch 'cxbrooks-master'
2 parents 30126ec + 73835fc commit 3bbfe8d

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ You should get a functional Mac Application Bundle working with both Java distri
108108
> If you don't want to care about compatibility issues between OS X and Java versions, better use my JarBundler fork (see next example).
109109
110110
### My JarBundler fork (v2.4) example
111-
Download the latest release of my JarBundler fork [from it's github repo](https://github.com/tofi86/Jarbundler) and replace your old JarBundler library with the new one.
111+
Download the latest release of my JarBundler fork [from its github repo](https://github.com/tofi86/Jarbundler) and replace your old JarBundler library with the new one.
112112

113113
Then place the `universalJavaApplicationStub` from this repo in your build resources folder and link it in your ANT task (attribute `stubfile`). Don't forget to set the newly introduced `useJavaXKey` option:
114114
```XML

src/universalJavaApplicationStub

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# #
1414
# @author Tobias Fischer #
1515
# @url https://github.com/tofi86/universalJavaApplicationStub #
16-
# @date 2015-09-29 #
16+
# @date 2015-10-08 #
1717
# @version 0.9.0 #
1818
# #
1919
# #
@@ -158,6 +158,8 @@ if [ $exitcode -eq 0 ]; then
158158

159159
# read the JVM Options
160160
JVMOptions=`/usr/libexec/PlistBuddy -c "print ${JavaKey}:Properties" "${InfoPlistFile}" 2> /dev/null | grep " =" | sed 's/^ */-D/g' | tr '\n' ' ' | sed 's/ */ /g' | sed 's/ = /=/g' | xargs`
161+
# replace occurences of $APP_ROOT with its content
162+
JVMOptions=`eval "echo ${JVMOptions}"`
161163

162164
# read StartOnMainThread
163165
JVMStartOnMainThread=`/usr/libexec/PlistBuddy -c "print ${JavaKey}:StartOnMainThread" "${InfoPlistFile}" 2> /dev/null`
@@ -180,9 +182,11 @@ if [ $exitcode -eq 0 ]; then
180182

181183
# read the JVM Arguments
182184
JVMArguments=`/usr/libexec/PlistBuddy -c "print ${JavaKey}:Arguments" "${InfoPlistFile}" 2> /dev/null | xargs`
185+
# replace occurences of $APP_ROOT with its content
186+
JVMArguments=`eval "echo ${JVMArguments}"`
183187

184-
# read the Java version we want to find
185-
JVMVersion=`/usr/libexec/PlistBuddy -c "print ${JavaKey}:JVMVersion" "${InfoPlistFile}" 2> /dev/null | xargs`
188+
# read the Java version we want to find
189+
JVMVersion=`/usr/libexec/PlistBuddy -c "print ${JavaKey}:JVMVersion" "${InfoPlistFile}" 2> /dev/null | xargs`
186190

187191
# read Info.plist in Oracle style
188192
else
@@ -199,7 +203,7 @@ else
199203

200204
# read the JVM Options
201205
JVMOptions=`/usr/libexec/PlistBuddy -c "print :JVMOptions" "${InfoPlistFile}" 2> /dev/null | grep " -" | tr -d '\n' | sed 's/ */ /g' | xargs`
202-
# replace occurances of $APP_ROOT with it's content
206+
# replace occurences of $APP_ROOT with its content
203207
JVMOptions=`eval "echo ${JVMOptions}"`
204208

205209
JVMClassPath="${JavaFolder}/*"
@@ -209,7 +213,7 @@ else
209213

210214
# read the JVM Arguments
211215
JVMArguments=`/usr/libexec/PlistBuddy -c "print :JVMArguments" "${InfoPlistFile}" 2> /dev/null | tr -d '\n' | sed -E 's/Array \{ *(.*) *\}/\1/g' | sed 's/ */ /g' | xargs`
212-
# replace occurances of $APP_ROOT with it's content
216+
# replace occurences of $APP_ROOT with its content
213217
JVMArguments=`eval "echo ${JVMArguments}"`
214218
fi
215219

0 commit comments

Comments
 (0)