• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:no +full:- +full:warn +full:- +full:script +full:- +full:location

4 # Copyright © 2015-2021 the original authors.
10 # https://www.apache.org/licenses/LICENSE-2.0
21 # Gradle start up script for POSIX generated by Gradle.
25 # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
27 # bash, then to run this script, type that shell name before the whole
32 # Busybox and similar reduced shells will NOT work, because this script
35 # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
38 # * various built-in commands including «command», «set», and «ulimit».
42 # (2) This script targets any POSIX shell, so it avoids extensions provided
46 # space-separated string is a well documented source of bugs and security
51 # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52 # see the in-line comments for details.
57 # (3) This script is generated from the Groovy template
70 # Need this for daisy-chained symlinks.
72 APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73 [ -h "$app_path" ]
75 ls=$( ls -ld "$app_path" )
76 link=${ls#*' -> '}
83 APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
88 …lt 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"'
91 # Use the maximum available, or set MAX_FD != -1 to use that value.
94 warn () { function
117 CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
121 if [ -n "$JAVA_HOME" ] ; then
122 if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
128 if [ ! -x "$JAVACMD" ] ; then
132 location of your Java installation."
136 …which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be foun…
139 location of your Java installation."
146 MAX_FD=$( ulimit -H -n ) ||
147 warn "Could not query maximum file descriptor limit"
152 ulimit -n "$MAX_FD" ||
153 warn "Could not set maximum file descriptor limit to $MAX_FD"
160 # * -classpath
161 # * -D...appname settings
162 # * --module-path (only if needed)
167 APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
168 CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
170 JAVACMD=$( cygpath --unix "$JAVACMD" )
172 # Now convert the arguments - kludge to limit ourselves to /bin/sh
176 -*) false ;; # don't mess with options #(
178 [ -e "$t" ] ;; #(
182 arg=$( cygpath --path --ignore --mixed "$arg" )
192 set -- "$@" "$arg" # push replacement arg
198 # shell script including quotes and variable substitutions, so put them in
199 # double quotes to make sure that they get re-expanded; and
200 # * put everything else in single quotes, so that it's not re-expanded.
202 set -- \
203 "-Dorg.gradle.appname=$APP_BASE_NAME" \
204 -classpath "$CLASSPATH" \
209 if ! command -v xargs >/dev/null 2>&1
216 # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
220 # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
221 # set -- "${ARGS[@]}" "$@"
224 # post-process each arg (as a line of input to sed) to backslash-escape any
233 eval "set -- $(
235 xargs -n1 |
236 sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |