-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathgradlew
More file actions
executable file
·52 lines (46 loc) · 1.33 KB
/
Copy pathgradlew
File metadata and controls
executable file
·52 lines (46 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
#
##############################################################################
# Attempt to set APP_HOME
app_path=$0
while
APP_HOME=${app_path%"${app_path##*/}"}
[ -h "$app_path" ]
do
ls=$( ls -ld -- "$app_path" )
link=${ls#*' -> '}
case $link in
/*) app_path=$link ;;
*) app_path=$APP_HOME$link ;;
esac
done
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
echo "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME" >&2
exit 1
fi
else
JAVACMD=java
if ! command -v java >/dev/null 2>&1 ; then
echo "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH." >&2
exit 1
fi
fi
exec "$JAVACMD" \
-Xmx64m -Xms64m \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"