Skip to content

Commit

Permalink
Merge pull request #118 from morgen-peschke/feature/launch-script-acc…
Browse files Browse the repository at this point in the history
…ept-java-options

Feature/launch script accept java options
  • Loading branch information
xerial authored Oct 8, 2017
2 parents dd2e4a6 + 9f0f27e commit 63f526c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/twirl/xerial/sbt/pack/launch.scala.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ PROG_NAME=@(opts.PROG_NAME)
PROG_VERSION=@(opts.PROG_VERSION)
PROG_REVISION=@(opts.PROG_REVISION)

for arg do
shift
case $arg in
-D*) JAVA_OPTS="$JAVA_OPTS $arg" ;;
*) set -- "$@@" "$arg" ;;
esac
done

eval exec "\"$JAVACMD\"" \
@(opts.JVM_OPTS) \
${JAVA_OPTS} \
Expand Down

0 comments on commit 63f526c

Please sign in to comment.