|
55 | 55 | # Darwin, MinGW, and NonStop. |
56 | 56 | # |
57 | 57 | # (3) This script is generated from the Groovy template |
58 | | -# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt |
| 58 | +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt |
59 | 59 | # within the Gradle project. |
60 | 60 | # |
61 | 61 | # You can find Gradle at https://github.com/gradle/gradle/. |
|
80 | 80 | esac |
81 | 81 | done |
82 | 82 |
|
83 | | -APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit |
84 | | - |
85 | | -APP_NAME="Gradle" |
| 83 | +# This is normally unused |
| 84 | +# shellcheck disable=SC2034 |
86 | 85 | 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"' |
| 86 | +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit |
90 | 87 |
|
91 | 88 | # Use the maximum available, or set MAX_FD != -1 to use that value. |
92 | 89 | MAX_FD=maximum |
|
143 | 140 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then |
144 | 141 | case $MAX_FD in #( |
145 | 142 | 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 |
146 | 145 | MAX_FD=$( ulimit -H -n ) || |
147 | 146 | warn "Could not query maximum file descriptor limit" |
148 | 147 | esac |
149 | 148 | case $MAX_FD in #( |
150 | 149 | '' | soft) :;; #( |
151 | 150 | *) |
| 151 | + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. |
| 152 | + # shellcheck disable=SC3045 |
152 | 153 | ulimit -n "$MAX_FD" || |
153 | 154 | warn "Could not set maximum file descriptor limit to $MAX_FD" |
154 | 155 | esac |
@@ -193,6 +194,10 @@ if "$cygwin" || "$msys" ; then |
193 | 194 | done |
194 | 195 | fi |
195 | 196 |
|
| 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 | + |
196 | 201 | # Collect all arguments for the java command; |
197 | 202 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of |
198 | 203 | # shell script including quotes and variable substitutions, so put them in |
|
0 commit comments