aboutsummaryrefslogtreecommitdiff
path: root/gradlew
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-07 11:53:39 +0300
committerGravatar Vitaly Takmazov2016-07-07 11:54:33 +0300
commita73729a646f6f1520e898fcf4a9422ee5c804fe9 (patch)
tree1822c9b631e170c9e0e14e677f0a59e7b742b66c /gradlew
parent01eada11aafcb712a366ce816c98c660f5ea6907 (diff)
fix gradle wrapper
Diffstat (limited to 'gradlew')
-rwxr-xr-xgradlew10
1 files changed, 7 insertions, 3 deletions
diff --git a/gradlew b/gradlew
index 9d82f789..91a7e269 100755
--- a/gradlew
+++ b/gradlew
@@ -42,6 +42,11 @@ case "`uname`" in
;;
esac
+# For Cygwin, ensure paths are in UNIX format before anything is touched.
+if $cygwin ; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
@@ -56,9 +61,9 @@ while [ -h "$PRG" ] ; do
fi
done
SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/" >/dev/null
+cd "`dirname \"$PRG\"`/" >&-
APP_HOME="`pwd -P`"
-cd "$SAVED" >/dev/null
+cd "$SAVED" >&-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
@@ -109,7 +114,6 @@ fi
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
- JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`