aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJey Kottalam <jey@cs.berkeley.edu>2013-08-18 16:58:08 -0700
committerJey Kottalam <jey@cs.berkeley.edu>2013-08-18 16:59:02 -0700
commit47a7c4338a7e912d8677704204e98df15679322b (patch)
treecb8b5a3abb8b5cc824a863845f731a5411bebfe6 /bin
parent44000b10ffed83ae605521701d104878f491f31c (diff)
downloadspark-47a7c4338a7e912d8677704204e98df15679322b.tar.gz
spark-47a7c4338a7e912d8677704204e98df15679322b.tar.bz2
spark-47a7c4338a7e912d8677704204e98df15679322b.zip
Don't assume spark-examples JAR always exists
Diffstat (limited to 'bin')
-rwxr-xr-xbin/compute-classpath.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/compute-classpath.sh b/bin/compute-classpath.sh
index f975d3bfb9..7a21b3c4a1 100755
--- a/bin/compute-classpath.sh
+++ b/bin/compute-classpath.sh
@@ -67,8 +67,9 @@ function dev_classpath {
CLASSPATH="$CLASSPATH:$jar"
done
# The shaded JAR doesn't contain examples, so include those separately
- EXAMPLES_JAR=`ls "$EXAMPLES_DIR/target/spark-examples"*[0-9T].jar`
- CLASSPATH+=":$EXAMPLES_JAR"
+ for jar in `find "$EXAMPLES_DIR/target" -name 'spark-examples*[0-9T].jar'`; do
+ CLASSPATH="$CLASSPATH:$jar"
+ done
fi
CLASSPATH="$CLASSPATH:$BAGEL_DIR/target/scala-$SCALA_VERSION/classes"
CLASSPATH="$CLASSPATH:$MLLIB_DIR/target/scala-$SCALA_VERSION/classes"