aboutsummaryrefslogtreecommitdiff
path: root/run-example
diff options
context:
space:
mode:
Diffstat (limited to 'run-example')
-rwxr-xr-xrun-example10
1 files changed, 10 insertions, 0 deletions
diff --git a/run-example b/run-example
index feade6589a..a78192d31d 100755
--- a/run-example
+++ b/run-example
@@ -17,6 +17,11 @@
# limitations under the License.
#
+cygwin=false
+case "`uname`" in
+ CYGWIN*) cygwin=true;;
+esac
+
SCALA_VERSION=2.10
# Figure out where the Scala framework is installed
@@ -59,6 +64,11 @@ fi
CLASSPATH=`$FWDIR/bin/compute-classpath.sh`
CLASSPATH="$SPARK_EXAMPLES_JAR:$CLASSPATH"
+if $cygwin; then
+ CLASSPATH=`cygpath -wp $CLASSPATH`
+ export SPARK_EXAMPLES_JAR=`cygpath -w $SPARK_EXAMPLES_JAR`
+fi
+
# Find java binary
if [ -n "${JAVA_HOME}" ]; then
RUNNER="${JAVA_HOME}/bin/java"