|
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/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 |
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 |
| -# This is normally unused |
84 |
| -# shellcheck disable=SC2034 |
85 |
| -APP_BASE_NAME=${0##*/} |
86 | 83 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
87 | 84 |
|
| 85 | +APP_NAME="Gradle" |
| 86 | +APP_BASE_NAME=${0##*/} |
| 87 | + |
88 | 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"' |
| 89 | +DEFAULT_JVM_OPTS='-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"' |
90 | 90 |
|
91 | 91 | # Use the maximum available, or set MAX_FD != -1 to use that value.
|
92 | 92 | MAX_FD=maximum
|
|
143 | 143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
144 | 144 | case $MAX_FD in #(
|
145 | 145 | max*)
|
146 |
| - # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. |
147 |
| - # shellcheck disable=SC3045 |
148 | 146 | MAX_FD=$( ulimit -H -n ) ||
|
149 | 147 | warn "Could not query maximum file descriptor limit"
|
150 | 148 | esac
|
151 | 149 | case $MAX_FD in #(
|
152 | 150 | '' | soft) :;; #(
|
153 | 151 | *)
|
154 |
| - # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. |
155 |
| - # shellcheck disable=SC3045 |
156 | 152 | ulimit -n "$MAX_FD" ||
|
157 | 153 | warn "Could not set maximum file descriptor limit to $MAX_FD"
|
158 | 154 | esac
|
@@ -209,12 +205,6 @@ set -- \
|
209 | 205 | org.gradle.wrapper.GradleWrapperMain \
|
210 | 206 | "$@"
|
211 | 207 |
|
212 |
| -# Stop when "xargs" is not available. |
213 |
| -if ! command -v xargs >/dev/null 2>&1 |
214 |
| -then |
215 |
| - die "xargs is not available" |
216 |
| -fi |
217 |
| - |
218 | 208 | # Use "xargs" to parse quoted args.
|
219 | 209 | #
|
220 | 210 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
|
0 commit comments