5555# Darwin, MinGW, and NonStop.
5656#
5757# (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
58+ # https://github.com/gradle/gradle/blob/master /subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959# within the Gradle project.
6060#
6161# You can find Gradle at https://github.com/gradle/gradle/.
8080 esac
8181done
8282
83- # This is normally unused
84- # shellcheck disable=SC2034
85- APP_BASE_NAME=${0##*/ }
8683APP_HOME=$( cd " ${APP_HOME:- ./ } " && pwd -P ) || exit
8784
85+ APP_NAME=" Gradle"
86+ APP_BASE_NAME=${0##*/ }
87+
88+ # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89+ DEFAULT_JVM_OPTS=' "-Xmx64m" "-Xms64m"'
90+
8891# Use the maximum available, or set MAX_FD != -1 to use that value.
8992MAX_FD=maximum
9093
140143if ! " $cygwin " && ! " $darwin " && ! " $nonstop " ; then
141144 case $MAX_FD in # (
142145 max* )
143- # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
144- # shellcheck disable=SC3045
145146 MAX_FD=$( ulimit -H -n ) ||
146147 warn " Could not query maximum file descriptor limit"
147148 esac
148149 case $MAX_FD in # (
149150 ' ' | soft) : ;; # (
150151 * )
151- # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
152- # shellcheck disable=SC3045
153152 ulimit -n " $MAX_FD " ||
154153 warn " Could not set maximum file descriptor limit to $MAX_FD "
155154 esac
@@ -194,10 +193,6 @@ if "$cygwin" || "$msys" ; then
194193 done
195194fi
196195
197-
198- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
199- DEFAULT_JVM_OPTS=' "-Xmx64m" "-Xms64m"'
200-
201196# Collect all arguments for the java command;
202197# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
203198# shell script including quotes and variable substitutions, so put them in
@@ -210,12 +205,6 @@ set -- \
210205 org.gradle.wrapper.GradleWrapperMain \
211206 " $@ "
212207
213- # Stop when "xargs" is not available.
214- if ! command -v xargs > /dev/null 2>&1
215- then
216- die " xargs is not available"
217- fi
218-
219208# Use "xargs" to parse quoted args.
220209#
221210# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
0 commit comments