Skip to content

Commit 2f9d527

Browse files
committed
U read bootstrap script file name from info.plist file
1 parent 810b214 commit 2f9d527

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/universalJavaApplicationStub

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ if [ $exitcode -eq 0 ]; then
242242
# read options file name
243243
JVMOptionsFile=$(plist_get_java ':JVMOptionsFile')
244244

245+
# read bootstrap script file name
246+
BootstrapScript=$(plist_get_java ':BootstrapScript')
247+
245248
# read 'Info.plist' file in Oracle style
246249
else
247250
stub_logger "[PlistStyle] Oracle"
@@ -306,6 +309,9 @@ else
306309
# read options file name
307310
JVMOptionsFile=$(plist_get ':JVMOptionsFile')
308311

312+
# read bootstrap script file name
313+
BootstrapScript=$(plist_get ':BootstrapScript')
314+
309315
fi
310316

311317
# read JVM options from file
@@ -874,7 +880,7 @@ cd "${WorkingDirectory}" || exit 13
874880
stub_logger "[WorkingDirectory] ${WorkingDirectory}"
875881

876882
# invoke bootstrap script
877-
Bootstrap=$ResourcesFolder/scripts/bootstrap && [ -x "$Bootstrap" ] && $Bootstrap
883+
[ -x "$BootstrapScript" ] && "$BootstrapScript"
878884

879885
# execute Java and set
880886
# - classpath

0 commit comments

Comments
 (0)