@@ -28,7 +28,7 @@ APP_NAME="Gradle"
28
28
APP_BASE_NAME=` basename " $0 " `
29
29
30
30
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31
- DEFAULT_JVM_OPTS=" "
31
+ DEFAULT_JVM_OPTS=' "-Xmx64m" '
32
32
33
33
# Use the maximum available, or set MAX_FD != -1 to use that value.
34
34
MAX_FD=" maximum"
66
66
67
67
CLASSPATH=$APP_HOME /gradle/wrapper/gradle-wrapper.jar
68
68
69
- # Determine the Java cli to use to start the JVM.
69
+ # Determine the Java command to use to start the JVM.
70
70
if [ -n " $JAVA_HOME " ] ; then
71
71
if [ -x " $JAVA_HOME /jre/sh/java" ] ; then
72
72
# IBM's JDK on AIX uses strange locations for the executables
@@ -82,7 +82,7 @@ location of your Java installation."
82
82
fi
83
83
else
84
84
JAVACMD=" java"
85
- which java > /dev/null 2>&1 || die " ERROR: JAVA_HOME is not set and no 'java' cli could be found in your PATH.
85
+ which java > /dev/null 2>&1 || die " ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86
86
87
87
Please set the JAVA_HOME variable in your environment to match the
88
88
location of your Java installation."
@@ -161,7 +161,7 @@ save () {
161
161
}
162
162
APP_ARGS=$( save " $@ " )
163
163
164
- # Collect all arguments for the java cli , following the shell quoting and substitution rules
164
+ # Collect all arguments for the java command , following the shell quoting and substitution rules
165
165
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS " \" -Dorg.gradle.appname=$APP_BASE_NAME \" " -classpath " \" $CLASSPATH \" " org.gradle.wrapper.GradleWrapperMain " $APP_ARGS "
166
166
167
167
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
0 commit comments