8686# shellcheck disable=SC2034
8787APP_BASE_NAME=${0##*/ }
8888# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89- APP_HOME=$( cd -P " ${APP_HOME:- ./ } " > /dev/null && printf ' %s\n ' " $PWD " ) || exit
90-
89+ APP_HOME=$( cd -P " ${APP_HOME:- ./ } " > /dev/null && printf ' %s
90+ ' " $PWD " ) || exit
9191# Use the maximum available, or set MAX_FD != -1 to use that value.
9292MAX_FD=maximum
9393
@@ -114,7 +114,7 @@ case "$( uname )" in #(
114114 NONSTOP* ) nonstop=true ;;
115115esac
116116
117- CLASSPATH=" \\\"\\\" "
117+ CLASSPATH=$APP_HOME /gradle/wrapper/gradle-wrapper.jar
118118
119119
120120# Determine the Java command to use to start the JVM.
205205DEFAULT_JVM_OPTS=' "-Xmx64m" "-Xms64m"'
206206
207207# Collect all arguments for the java command:
208- # DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
208+ # * DEFAULT_JVM_OPTS, JAVA_OPTS , JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
209209# and any embedded shellness will be escaped.
210210# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
211211# treated as '${Hostname}' itself on the command line.
212212
213213set -- \
214214 " -Dorg.gradle.appname=$APP_BASE_NAME " \
215215 -classpath " $CLASSPATH " \
216- -jar " $APP_HOME / gradle/ wrapper/gradle-wrapper.jar " \
216+ org. gradle. wrapper.GradleWrapperMain \
217217 " $@ "
218218
219219# Stop when "xargs" is not available.
0 commit comments