File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
repl/scala-2.10/src/main/scala/org/apache/spark/repl Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ class SparkILoop(
206
206
// e.g. file:/C:/my/path.jar -> C:/my/path.jar
207
207
SparkILoop .getAddedJars.map { jar => new URI (jar).getPath.stripPrefix(" /" ) }
208
208
} else {
209
- SparkILoop .getAddedJars
209
+ SparkILoop .getAddedJars.map { jar => new URI (jar).getPath}
210
210
}
211
211
// work around for Scala bug
212
212
val totalClassPath = addedJars.foldLeft(
@@ -1109,7 +1109,7 @@ object SparkILoop extends Logging {
1109
1109
if (settings.classpath.isDefault)
1110
1110
settings.classpath.value = sys.props(" java.class.path" )
1111
1111
1112
- getAddedJars.foreach(settings.classpath.append(_))
1112
+ getAddedJars.map(jar => new URI (jar).getPath). foreach(settings.classpath.append(_))
1113
1113
1114
1114
repl process settings
1115
1115
}
You can’t perform that action at this time.
0 commit comments