You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2013/12/24 22:39:22 UTC
[2/2] git commit: Merge pull request #275 from
ueshin/wip/changeclasspathorder
Merge pull request #275 from ueshin/wip/changeclasspathorder
Change the order of CLASSPATH.
SPARK_TOOLS_JAR should be placed after CLASSPATH or at least after
SPARK_CLASSPATH.
If SPARK_TOOLS_JAR is placed before CLASSPATH, all assembled classes and
resources in spark-tools-assembly.jar beat those in CLASSPATH or
SPARK_CLASSPATH, which might be replaced by customized versions.
Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/3bf7c708
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/3bf7c708
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/3bf7c708
Branch: refs/heads/master
Commit: 3bf7c708d3206b2144aa464b03cef36f6046e0be
Parents: d63856c d5b260e
Author: Matei Zaharia <ma...@databricks.com>
Authored: Tue Dec 24 16:37:13 2013 -0500
Committer: Matei Zaharia <ma...@databricks.com>
Committed: Tue Dec 24 16:37:13 2013 -0500
----------------------------------------------------------------------
spark-class | 6 +++---
spark-class2.cmd | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/3bf7c708/spark-class
----------------------------------------------------------------------
diff --cc spark-class
index 4eb95a9,ff51fbd..802e4aa
--- a/spark-class
+++ b/spark-class
@@@ -129,12 -124,7 +129,12 @@@ f
# Compute classpath using external script
CLASSPATH=`$FWDIR/bin/compute-classpath.sh`
- CLASSPATH="$SPARK_TOOLS_JAR:$CLASSPATH"
+ CLASSPATH="$CLASSPATH:$SPARK_TOOLS_JAR"
+
+if $cygwin; then
- CLASSPATH=`cygpath -wp $CLASSPATH`
- export SPARK_TOOLS_JAR=`cygpath -w $SPARK_TOOLS_JAR`
++ CLASSPATH=`cygpath -wp $CLASSPATH`
++ export SPARK_TOOLS_JAR=`cygpath -w $SPARK_TOOLS_JAR`
+fi
export CLASSPATH
if [ "$SPARK_PRINT_LAUNCH_COMMAND" == "1" ]; then