aboutsummaryrefslogtreecommitdiff
path: root/spark-class
diff options
context:
space:
mode:
authorPatrick Wendell <pwendell@gmail.com>2013-12-30 12:46:09 -0800
committerPatrick Wendell <pwendell@gmail.com>2013-12-30 12:46:09 -0800
commit1cbef081e3d1dcc647b49a2f2b5f13ceaa0f611d (patch)
tree16fcf3b01e0aefb2bf28691538e7f7eeda1f2376 /spark-class
parentcffe1c1d5c0abfbb463fa91e8b340a9c535532fe (diff)
downloadspark-1cbef081e3d1dcc647b49a2f2b5f13ceaa0f611d.tar.gz
spark-1cbef081e3d1dcc647b49a2f2b5f13ceaa0f611d.tar.bz2
spark-1cbef081e3d1dcc647b49a2f2b5f13ceaa0f611d.zip
Response to Shivaram's review
Diffstat (limited to 'spark-class')
-rwxr-xr-xspark-class31
1 files changed, 17 insertions, 14 deletions
diff --git a/spark-class b/spark-class
index 1c4323ee53..1858ea6247 100755
--- a/spark-class
+++ b/spark-class
@@ -115,27 +115,30 @@ if [ ! -f "$FWDIR/RELEASE" ]; then
fi
fi
-if [ "$1" == "org.apache.spark.tools.JavaAPICompletenessChecker" ]; then
- TOOLS_DIR="$FWDIR"/tools
- SPARK_TOOLS_JAR=""
- if [ -e "$TOOLS_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9Tg].jar ]; then
- # Use the JAR from the SBT build
- export SPARK_TOOLS_JAR=`ls "$TOOLS_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9Tg].jar`
- fi
- if [ -e "$TOOLS_DIR"/target/spark-tools*[0-9Tg].jar ]; then
- # Use the JAR from the Maven build
- # TODO: this also needs to become an assembly!
- export SPARK_TOOLS_JAR=`ls "$TOOLS_DIR"/target/spark-tools*[0-9Tg].jar`
- fi
+TOOLS_DIR="$FWDIR"/tools
+SPARK_TOOLS_JAR=""
+if [ -e "$TOOLS_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9Tg].jar ]; then
+ # Use the JAR from the SBT build
+ export SPARK_TOOLS_JAR=`ls "$TOOLS_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9Tg].jar`
+fi
+if [ -e "$TOOLS_DIR"/target/spark-tools*[0-9Tg].jar ]; then
+ # Use the JAR from the Maven build
+ # TODO: this also needs to become an assembly!
+ export SPARK_TOOLS_JAR=`ls "$TOOLS_DIR"/target/spark-tools*[0-9Tg].jar`
fi
# Compute classpath using external script
CLASSPATH=`$FWDIR/bin/compute-classpath.sh`
-CLASSPATH="$CLASSPATH:$SPARK_TOOLS_JAR"
+
+if [ "$1" == "org.apache.spark.tools.JavaAPICompletenessChecker" ]; then
+ CLASSPATH="$CLASSPATH:$SPARK_TOOLS_JAR"
+fi
if $cygwin; then
CLASSPATH=`cygpath -wp $CLASSPATH`
- export SPARK_TOOLS_JAR=`cygpath -w $SPARK_TOOLS_JAR`
+ if [ "$1" == "org.apache.spark.tools.JavaAPICompletenessChecker" ]; then
+ export SPARK_TOOLS_JAR=`cygpath -w $SPARK_TOOLS_JAR`
+ fi
fi
export CLASSPATH