Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix the regression problem on ADD_JARS in 0.9

  • Loading branch information...
commit e0455828e4cbc8242e6d4ad3e470952b9348da06 1 parent c86eec5
@CodingCat CodingCat authored
Showing with 10 additions and 3 deletions.
  1. +10 −3 repl/src/main/scala/org/apache/spark/repl/SparkILoop.scala
View
13 repl/src/main/scala/org/apache/spark/repl/SparkILoop.scala
@@ -182,10 +182,17 @@ class SparkILoop(in0: Option[BufferedReader], protected val out: JPrintWriter,
/** Create a new interpreter. */
def createInterpreter() {
- if (addedClasspath != "")
- settings.classpath append addedClasspath
+ if (settings != null) {
+ if (addedClasspath != "")
+ settings.classpath append addedClasspath
- intp = new SparkILoopInterpreter
+ // work around for Scala bug
+ val totalClassPath = SparkILoop.getAddedJars.foldLeft(
+ settings.classpath.value)((l, r) => ClassPath.join(l, r))
+ this.settings.classpath.value = totalClassPath
+
+ intp = new SparkILoopInterpreter
+ }
}
/** print a friendly help message */
Please sign in to comment.
Something went wrong with that request. Please try again.