spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pwend...@apache.org
Subject [04/13] git commit: fix run-example script
Date Wed, 11 Sep 2013 17:26:43 GMT
fix run-example script


Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/56b94078
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/56b94078
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/56b94078

Branch: refs/heads/branch-0.8
Commit: 56b94078481786a0b0bbcbe3971ee4ef0326d694
Parents: 2425eb8
Author: Haoyuan Li <haoyuan@cs.berkeley.edu>
Authored: Tue Sep 10 23:03:09 2013 -0700
Committer: Haoyuan Li <haoyuan@cs.berkeley.edu>
Committed: Tue Sep 10 23:03:09 2013 -0700

----------------------------------------------------------------------
 run-example | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/56b94078/run-example
----------------------------------------------------------------------
diff --git a/run-example b/run-example
index 24d83ba..85557d7 100755
--- a/run-example
+++ b/run-example
@@ -39,14 +39,14 @@ fi
 # to avoid the -sources and -doc packages that are built by publish-local.
 EXAMPLES_DIR="$FWDIR"/examples
 SPARK_EXAMPLES_JAR=""
-if [ -e "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9T].jar ]; then
+if [ -e "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9T]*.jar ]; then
   # Use the JAR from the SBT build
-  export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9T].jar`
+  export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9T]*.jar`
 fi
-if [ -e "$EXAMPLES_DIR"/target/spark-examples*[0-9T].jar ]; then
+if [ -e "$EXAMPLES_DIR"/target/spark-examples*[0-9T]*.jar ]; then
   # Use the JAR from the Maven build
   # TODO: this also needs to become an assembly!
-  export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/spark-examples*[0-9T].jar`
+  export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/spark-examples*[0-9T]*.jar`
 fi
 if [[ -z $SPARK_EXAMPLES_JAR ]]; then
   echo "Failed to find Spark examples assembly in $FWDIR/examples/target" >&2


Mime
View raw message