From 1313a7841823f32fb6ed5af501f66e8b063adae7 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Mon, 10 Jun 2013 11:56:38 -0400 Subject: [PATCH] scripted: filter JLine classes from the class loader to avoid incompatibilities between the running and tested sbt versions --- scripted/plugin/ScriptedPlugin.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripted/plugin/ScriptedPlugin.scala b/scripted/plugin/ScriptedPlugin.scala index f38875d3d..aa51e7c90 100644 --- a/scripted/plugin/ScriptedPlugin.scala +++ b/scripted/plugin/ScriptedPlugin.scala @@ -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) }