Fri, 30 Dec 2022 19:14:04 +0100
disable autocomplete for issue relations
The reason is that autocomplete would suggest issues
from other projects. But we only want the datalist
to serve the suggestions.
147
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1 | #!/usr/bin/env sh |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
2 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
3 | # |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
4 | # Copyright 2015 the original author or authors. |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
5 | # |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
7 | # you may not use this file except in compliance with the License. |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
8 | # You may obtain a copy of the License at |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
9 | # |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
10 | # https://www.apache.org/licenses/LICENSE-2.0 |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
11 | # |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
12 | # Unless required by applicable law or agreed to in writing, software |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
13 | # distributed under the License is distributed on an "AS IS" BASIS, |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
15 | # See the License for the specific language governing permissions and |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
16 | # limitations under the License. |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
17 | # |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
18 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
19 | ############################################################################## |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
20 | ## |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
21 | ## Gradle start up script for UN*X |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
22 | ## |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
23 | ############################################################################## |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
24 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
25 | # Attempt to set APP_HOME |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
26 | # Resolve links: $0 may be a link |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
27 | PRG="$0" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
28 | # Need this for relative symlinks. |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
29 | while [ -h "$PRG" ] ; do |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
30 | ls=`ls -ld "$PRG"` |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
31 | link=`expr "$ls" : '.*-> \(.*\)$'` |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
32 | if expr "$link" : '/.*' > /dev/null; then |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
33 | PRG="$link" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
34 | else |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
35 | PRG=`dirname "$PRG"`"/$link" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
36 | fi |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
37 | done |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
38 | SAVED="`pwd`" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
39 | cd "`dirname \"$PRG\"`/" >/dev/null |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
40 | APP_HOME="`pwd -P`" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
41 | cd "$SAVED" >/dev/null |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
42 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
43 | APP_NAME="Gradle" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
44 | APP_BASE_NAME=`basename "$0"` |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
45 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
48 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
49 | # Use the maximum available, or set MAX_FD != -1 to use that value. |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
50 | MAX_FD="maximum" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
51 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
52 | warn () { |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
53 | echo "$*" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
54 | } |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
55 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
56 | die () { |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
57 | echo |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
58 | echo "$*" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
59 | echo |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
60 | exit 1 |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
61 | } |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
62 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
63 | # OS specific support (must be 'true' or 'false'). |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
64 | cygwin=false |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
65 | msys=false |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
66 | darwin=false |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
67 | nonstop=false |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
68 | case "`uname`" in |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
69 | CYGWIN* ) |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
70 | cygwin=true |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
71 | ;; |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
72 | Darwin* ) |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
73 | darwin=true |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
74 | ;; |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
75 | MINGW* ) |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
76 | msys=true |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
77 | ;; |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
78 | NONSTOP* ) |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
79 | nonstop=true |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
80 | ;; |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
81 | esac |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
82 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
84 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
85 | # Determine the Java command to use to start the JVM. |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
86 | if [ -n "$JAVA_HOME" ] ; then |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
88 | # IBM's JDK on AIX uses strange locations for the executables |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
89 | JAVACMD="$JAVA_HOME/jre/sh/java" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
90 | else |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
91 | JAVACMD="$JAVA_HOME/bin/java" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
92 | fi |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
93 | if [ ! -x "$JAVACMD" ] ; then |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
95 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
96 | Please set the JAVA_HOME variable in your environment to match the |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
97 | location of your Java installation." |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
98 | fi |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
99 | else |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
100 | JAVACMD="java" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
102 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
103 | Please set the JAVA_HOME variable in your environment to match the |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
104 | location of your Java installation." |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
105 | fi |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
106 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
107 | # Increase the maximum file descriptors if we can. |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
109 | MAX_FD_LIMIT=`ulimit -H -n` |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
110 | if [ $? -eq 0 ] ; then |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
112 | MAX_FD="$MAX_FD_LIMIT" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
113 | fi |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
114 | ulimit -n $MAX_FD |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
115 | if [ $? -ne 0 ] ; then |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
116 | warn "Could not set maximum file descriptor limit: $MAX_FD" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
117 | fi |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
118 | else |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
120 | fi |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
121 | fi |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
122 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
123 | # For Darwin, add options to specify how the application appears in the dock |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
124 | if $darwin; then |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
126 | fi |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
127 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
128 | # For Cygwin or MSYS, switch paths to Windows format before running java |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
129 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
132 | JAVACMD=`cygpath --unix "$JAVACMD"` |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
133 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
134 | # We build the pattern for arguments to be converted via cygpath |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
136 | SEP="" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
137 | for dir in $ROOTDIRSRAW ; do |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
138 | ROOTDIRS="$ROOTDIRS$SEP$dir" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
139 | SEP="|" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
140 | done |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
141 | OURCYGPATTERN="(^($ROOTDIRS))" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
142 | # Add a user-defined pattern to the cygpath arguments |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
145 | fi |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
147 | i=0 |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
148 | for arg in "$@" ; do |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
151 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
154 | else |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
155 | eval `echo args$i`="\"$arg\"" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
156 | fi |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
157 | i=`expr $i + 1` |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
158 | done |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
159 | case $i in |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
160 | 0) set -- ;; |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
161 | 1) set -- "$args0" ;; |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
162 | 2) set -- "$args0" "$args1" ;; |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
163 | 3) set -- "$args0" "$args1" "$args2" ;; |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
164 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
165 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
166 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
167 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
168 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
169 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
170 | esac |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
171 | fi |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
172 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
173 | # Escape application args |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
174 | save () { |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
176 | echo " " |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
177 | } |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
178 | APP_ARGS=`save "$@"` |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
179 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
180 | # Collect all arguments for the java command, following the shell quoting and substitution rules |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
182 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
183 | exec "$JAVACMD" "$@" |