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

Commit ae1048a

Browse files
dbankieristofi86
authored andcommitted
Pass command line arguments through to the application (#31)
* Pass command line arguments through to the application Currently, you cannot pass command line arguments to the bundled application. For instance: open MyJavaApp.app --args arg1 arg2 arg1 and arg2 are available in the universalJavaApplicationStub script, but it doesn't forward them in the call to java. This commit just tacks a $@ on the end of the call to exec "$JAVACMD"
1 parent 7715c47 commit ae1048a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/universalJavaApplicationStub

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,8 @@ elif [ -f "$JAVACMD" ] && [ -x "$JAVACMD" ] ; then
485485
${JVMOptions:+$JVMOptions }\
486486
${JVMDefaultOptions:+$JVMDefaultOptions }\
487487
${JVMMainClass}\
488-
${JVMArguments:+ $JVMArguments}
488+
${JVMArguments:+ $JVMArguments}\
489+
"$@"
489490

490491

491492
else

0 commit comments

Comments
 (0)