86
86
# shellcheck disable=SC2034
87
87
APP_BASE_NAME=${0##*/ }
88
88
# 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
91
91
# Use the maximum available, or set MAX_FD != -1 to use that value.
92
92
MAX_FD=maximum
93
93
@@ -114,7 +114,7 @@ case "$( uname )" in #(
114
114
NONSTOP* ) nonstop=true ;;
115
115
esac
116
116
117
- CLASSPATH=" \\\"\\\" "
117
+ CLASSPATH=$APP_HOME /gradle/wrapper/gradle-wrapper.jar
118
118
119
119
120
120
# Determine the Java command to use to start the JVM.
205
205
DEFAULT_JVM_OPTS=' "-Xmx64m" "-Xms64m"'
206
206
207
207
# 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,
209
209
# and any embedded shellness will be escaped.
210
210
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
211
211
# treated as '${Hostname}' itself on the command line.
212
212
213
213
set -- \
214
214
" -Dorg.gradle.appname=$APP_BASE_NAME " \
215
215
-classpath " $CLASSPATH " \
216
- -jar " $APP_HOME / gradle/ wrapper/gradle-wrapper.jar " \
216
+ org. gradle. wrapper.GradleWrapperMain \
217
217
" $@ "
218
218
219
219
# Stop when "xargs" is not available.
0 commit comments