File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
1+ #! /usr/bin/env sh
22
33#
44# Copyright 2015 the original author or authors.
@@ -49,11 +49,11 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
4949# Use the maximum available, or set MAX_FD != -1 to use that value.
5050MAX_FD=" maximum"
5151
52- warn ( ) {
52+ warn () {
5353 echo " $* "
5454}
5555
56- die ( ) {
56+ die () {
5757 echo
5858 echo " $* "
5959 echo
@@ -172,13 +172,14 @@ if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
172172 esac
173173fi
174174
175- # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
176- function splitJvmOpts() {
177- JVM_OPTS=(" $@ " )
175+ # Escape application args
176+ save () {
177+ for i do printf %s\\ n " $i " | sed " s/'/'\\\\ ''/g;1s/^/'/;\$ s/\$ /' \\\\ /" ; done
178+ echo " "
178179}
179180APP_ARGS=` save " $@ " `
180181
181182# Collect all arguments for the java command, following the shell quoting and substitution rules
182183eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS " \" -Dorg.gradle.appname=$APP_BASE_NAME \" " -classpath " \" $CLASSPATH \" " org.gradle.wrapper.GradleWrapperMain " $APP_ARGS "
183184
184- exec " $JAVACMD " " ${JVM_OPTS[@]} " -classpath " $CLASSPATH " org.gradle.wrapper.GradleWrapperMain " $ @"
185+ exec " $JAVACMD " " $@ "
You can’t perform that action at this time.
0 commit comments