|
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 |
| 89 | +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s |
| 90 | +' "$PWD" ) || exit |
90 | 91 |
|
91 | 92 | # Use the maximum available, or set MAX_FD != -1 to use that value.
|
92 | 93 | MAX_FD=maximum
|
@@ -114,7 +115,7 @@ case "$( uname )" in #(
|
114 | 115 | NONSTOP* ) nonstop=true ;;
|
115 | 116 | esac
|
116 | 117 |
|
117 |
| -CLASSPATH="\\\"\\\"" |
| 118 | +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar |
118 | 119 |
|
119 | 120 |
|
120 | 121 | # Determine the Java command to use to start the JVM.
|
|
205 | 206 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
206 | 207 |
|
207 | 208 | # Collect all arguments for the java command:
|
208 |
| -# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, |
| 209 | +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, |
209 | 210 | # and any embedded shellness will be escaped.
|
210 | 211 | # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
211 | 212 | # treated as '${Hostname}' itself on the command line.
|
212 | 213 |
|
213 | 214 | set -- \
|
214 | 215 | "-Dorg.gradle.appname=$APP_BASE_NAME" \
|
215 | 216 | -classpath "$CLASSPATH" \
|
216 |
| - -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ |
| 217 | + org.gradle.wrapper.GradleWrapperMain \ |
217 | 218 | "$@"
|
218 | 219 |
|
219 | 220 | # Stop when "xargs" is not available.
|
|
0 commit comments