diff options
author | Ali Ghodsi <alig@cs.berkeley.edu> | 2013-09-06 21:30:42 -0700 |
---|---|---|
committer | Ali Ghodsi <alig@cs.berkeley.edu> | 2013-10-24 11:59:51 -0700 |
commit | 05a0df2b9e0e4c3d032404187c0adf6d6d881860 (patch) | |
tree | f0b8d432c03562c875f3a00c0f4e0d63b728327f /repl/src/main | |
parent | dadfc63b0314060876ac1787d4de72b37221139c (diff) | |
download | spark-05a0df2b9e0e4c3d032404187c0adf6d6d881860.tar.gz spark-05a0df2b9e0e4c3d032404187c0adf6d6d881860.tar.bz2 spark-05a0df2b9e0e4c3d032404187c0adf6d6d881860.zip |
Makes Spark SIMR ready.
Diffstat (limited to 'repl/src/main')
-rw-r--r-- | repl/src/main/scala/org/apache/spark/repl/SparkILoop.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/repl/src/main/scala/org/apache/spark/repl/SparkILoop.scala b/repl/src/main/scala/org/apache/spark/repl/SparkILoop.scala index 48a8fa9328..0ced284da6 100644 --- a/repl/src/main/scala/org/apache/spark/repl/SparkILoop.scala +++ b/repl/src/main/scala/org/apache/spark/repl/SparkILoop.scala @@ -633,6 +633,20 @@ class SparkILoop(in0: Option[BufferedReader], val out: PrintWriter, val master: Result(true, shouldReplay) } + def addAllClasspath(args: Seq[String]): Unit = { + var added = false + var totalClasspath = "" + for (arg <- args) { + val f = File(arg).normalize + if (f.exists) { + added = true + addedClasspath = ClassPath.join(addedClasspath, f.path) + totalClasspath = ClassPath.join(settings.classpath.value, addedClasspath) + } + } + if (added) replay() + } + def addClasspath(arg: String): Unit = { val f = File(arg).normalize if (f.exists) { |