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