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