Skip to content
Snippets Groups Projects
Commit aa1c8c60 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Merge pull request #358 from stephenh/shorterclasspath

Retrieve jars to a flat directory so * can be used for the classpath.
parents 248995c5 c3f1675f
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ object SparkBuild extends Build {
scalacOptions := Seq(/*"-deprecation",*/ "-unchecked", "-optimize"), // -deprecation is too noisy due to usage of old Hadoop API, enable it once that's no longer an issue
unmanagedJars in Compile <<= baseDirectory map { base => (base / "lib" ** "*.jar").classpath },
retrieveManaged := true,
retrievePattern := "[type]s/[artifact](-[revision])(-[classifier]).[ext]",
transitiveClassifiers in Scope.GlobalScope := Seq("sources"),
testListeners <<= target.map(t => Seq(new eu.henkelmann.sbt.JUnitXmlTestsListener(t.getAbsolutePath))),
......
......@@ -75,16 +75,10 @@ CLASSPATH+=":$CORE_DIR/src/main/resources"
CLASSPATH+=":$REPL_DIR/target/scala-$SCALA_VERSION/classes"
CLASSPATH+=":$EXAMPLES_DIR/target/scala-$SCALA_VERSION/classes"
if [ -e "$FWDIR/lib_managed" ]; then
for jar in `find "$FWDIR/lib_managed/jars" -name '*jar'`; do
CLASSPATH+=":$jar"
done
for jar in `find "$FWDIR/lib_managed/bundles" -name '*jar'`; do
CLASSPATH+=":$jar"
done
CLASSPATH+=":$FWDIR/lib_managed/jars/*"
CLASSPATH+=":$FWDIR/lib_managed/bundles/*"
fi
for jar in `find "$REPL_DIR/lib" -name '*jar'`; do
CLASSPATH+=":$jar"
done
CLASSPATH+=":$REPL_DIR/lib/*"
for jar in `find "$REPL_DIR/target" -name 'spark-repl-*-shaded-hadoop*.jar'`; do
CLASSPATH+=":$jar"
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment