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