Github user rcsenkbeil commented on a diff in the pull request:
https://github.com/apache/spark/pull/1929#discussion_r16206403
--- Diff: repl/src/main/scala/org/apache/spark/repl/SparkILoop.scala ---
@@ -711,22 +714,22 @@ class SparkILoop(in0: Option[BufferedReader],
protected val out: JPrintWriter,
added = true
addedClasspath = ClassPath.join(addedClasspath, f.path)
totalClasspath = ClassPath.join(settings.classpath.value,
addedClasspath)
+ intp.addUrlsToClassPath(f.toURI.toURL)
}
}
- if (added) replay()
}
def addClasspath(arg: String): Unit = {
val f = File(arg).normalize
if (f.exists) {
addedClasspath = ClassPath.join(addedClasspath, f.path)
- val totalClasspath = ClassPath.join(settings.classpath.value,
addedClasspath)
- echo("Added '%s'. Your new classpath is:\n\"%s\"".format(f.path,
totalClasspath))
- replay()
+ intp.addUrlsToClassPath(f.toURI.toURL)
--- End diff --
This adds the specified jar to both our compile time and runtime classpaths
in the interpreter.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]