|
85 | 85 | APP_BASE_NAME=${0##*/} |
86 | 86 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit |
87 | 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 | + |
88 | 91 | # Use the maximum available, or set MAX_FD != -1 to use that value. |
89 | 92 | MAX_FD=maximum |
90 | 93 |
|
@@ -141,15 +144,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then |
141 | 144 | case $MAX_FD in #( |
142 | 145 | max*) |
143 | 146 | # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. |
144 | | - # shellcheck disable=SC3045 |
| 147 | + # shellcheck disable=SC3045 |
145 | 148 | MAX_FD=$( ulimit -H -n ) || |
146 | 149 | warn "Could not query maximum file descriptor limit" |
147 | 150 | esac |
148 | 151 | case $MAX_FD in #( |
149 | 152 | '' | soft) :;; #( |
150 | 153 | *) |
151 | 154 | # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. |
152 | | - # shellcheck disable=SC3045 |
| 155 | + # shellcheck disable=SC3045 |
153 | 156 | ulimit -n "$MAX_FD" || |
154 | 157 | warn "Could not set maximum file descriptor limit to $MAX_FD" |
155 | 158 | esac |
@@ -194,10 +197,6 @@ if "$cygwin" || "$msys" ; then |
194 | 197 | done |
195 | 198 | fi |
196 | 199 |
|
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 | | - |
201 | 200 | # Collect all arguments for the java command; |
202 | 201 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of |
203 | 202 | # shell script including quotes and variable substitutions, so put them in |
|
0 commit comments