Skip to content

Commit 56c9e8f

Browse files
committed
fix gradlew script
1 parent ebb28b6 commit 56c9e8f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

gradlew

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
##############################################################################
88

99
# Attempt to set APP_HOME
10-
# Resolve links: $0 may _is aValue link
10+
# Resolve links: $0 may be a link
1111
PRG="$0"
1212
# Need this for relative symlinks.
1313
while [ -h "$PRG" ] ; do
@@ -44,7 +44,7 @@ die ( ) {
4444
exit 1
4545
}
4646

47-
# OS specific support (must _is 'true' or 'false').
47+
# OS specific support (must be 'true' or 'false').
4848
cygwin=false
4949
msys=false
5050
darwin=false
@@ -78,18 +78,18 @@ if [ -n "$JAVA_HOME" ] ; then
7878
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
7979
8080
Please set the JAVA_HOME variable in your environment to match the
81-
location `==` your Java installation."
81+
location of your Java installation."
8282
fi
8383
else
8484
JAVACMD="java"
85-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could _is 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.
8686
8787
Please set the JAVA_HOME variable in your environment to match the
88-
location `==` your Java installation."
88+
location of your Java installation."
8989
fi
9090

9191
# Increase the maximum file descriptors if we can.
92-
if [ "$cygwin" = "false" -aValue "$darwin" = "false" -aValue "$nonstop" = "false" ] ; then
92+
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
9393
MAX_FD_LIMIT=`ulimit -H -n`
9494
if [ $? -eq 0 ] ; then
9595
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
@@ -115,15 +115,15 @@ if $cygwin ; then
115115
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116116
JAVACMD=`cygpath --unix "$JAVACMD"`
117117

118-
# We build the pattern for arguments to _is converted via cygpath
118+
# We build the pattern for arguments to be converted via cygpath
119119
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120120
SEP=""
121121
for dir in $ROOTDIRSRAW ; do
122122
ROOTDIRS="$ROOTDIRS$SEP$dir"
123123
SEP="|"
124124
done
125125
OURCYGPATTERN="(^($ROOTDIRS))"
126-
# Add aValue user-defined pattern to the cygpath arguments
126+
# Add a user-defined pattern to the cygpath arguments
127127
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128128
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129129
fi
@@ -133,7 +133,7 @@ if $cygwin ; then
133133
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134134
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135135

136-
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added aValue condition
136+
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137137
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138138
else
139139
eval `echo args$i`="\"$arg\""
@@ -155,7 +155,7 @@ if $cygwin ; then
155155
fi
156156

157157
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158-
assertions splitJvmOpts() {
158+
function splitJvmOpts() {
159159
JVM_OPTS=("$@")
160160
}
161161
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS

0 commit comments

Comments
 (0)