|
1 | 1 | #!/bin/sh
|
2 | 2 |
|
3 | 3 | #
|
4 |
| -# SPDX-FileCopyrightText: © 2015-2023 the original authors. |
5 |
| -# SPDX-License-Identifier: Apache-2.0 |
| 4 | +# Copyright © 2015-2021 the original authors. |
6 | 5 | #
|
7 | 6 | # Licensed under the Apache License, Version 2.0 (the "License");
|
8 | 7 | # you may not use this file except in compliance with the License.
|
|
16 | 15 | # See the License for the specific language governing permissions and
|
17 | 16 | # limitations under the License.
|
18 | 17 | #
|
| 18 | +# SPDX-License-Identifier: Apache-2.0 |
| 19 | +# |
19 | 20 |
|
20 | 21 | ##############################################################################
|
21 | 22 | #
|
|
56 | 57 | # Darwin, MinGW, and NonStop.
|
57 | 58 | #
|
58 | 59 | # (3) This script is generated from the Groovy template
|
59 |
| -# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt |
| 60 | +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt |
60 | 61 | # within the Gradle project.
|
61 | 62 | #
|
62 | 63 | # You can find Gradle at https://github.com/gradle/gradle/.
|
|
85 | 86 | # shellcheck disable=SC2034
|
86 | 87 | APP_BASE_NAME=${0##*/}
|
87 | 88 | # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
88 |
| -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit |
| 89 | +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit |
89 | 90 |
|
90 | 91 | # Use the maximum available, or set MAX_FD != -1 to use that value.
|
91 | 92 | MAX_FD=maximum
|
@@ -113,7 +114,7 @@ case "$( uname )" in #(
|
113 | 114 | NONSTOP* ) nonstop=true ;;
|
114 | 115 | esac
|
115 | 116 |
|
116 |
| -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar |
| 117 | +CLASSPATH="\\\"\\\"" |
117 | 118 |
|
118 | 119 |
|
119 | 120 | # Determine the Java command to use to start the JVM.
|
|
204 | 205 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
205 | 206 |
|
206 | 207 | # Collect all arguments for the java command:
|
207 |
| -# * 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, |
208 | 209 | # and any embedded shellness will be escaped.
|
209 | 210 | # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
210 | 211 | # treated as '${Hostname}' itself on the command line.
|
211 | 212 |
|
212 | 213 | set -- \
|
213 | 214 | "-Dorg.gradle.appname=$APP_BASE_NAME" \
|
214 | 215 | -classpath "$CLASSPATH" \
|
215 |
| - org.gradle.wrapper.GradleWrapperMain \ |
| 216 | + -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ |
216 | 217 | "$@"
|
217 | 218 |
|
218 | 219 | # Stop when "xargs" is not available.
|
|
0 commit comments