scripted: filter JLine classes from the class loader to avoid incompatibilities between the running and tested sbt versions

This commit is contained in:
Mark Harrah
2013-06-10 11:56:38 -04:00
parent a3e27da408
commit 1313a78418
+2 -1
View File
@@ -32,7 +32,8 @@ object ScriptedPlugin extends Plugin {
def scriptedTestsTask: Initialize[Task[AnyRef]] = (scriptedClasspath, scalaInstance) map {
(classpath, scala) =>
val loader = ClasspathUtilities.toLoader(classpath, scala.loader)
val parent = new sbt.classpath.FilteredLoader(scala.loader, "jline." :: Nil)
val loader = ClasspathUtilities.toLoader(classpath, parent)
ModuleUtilities.getObject("sbt.test.ScriptedTests", loader)
}