mirror of https://github.com/sbt/sbt.git
fix console-project class loader
This commit is contained in:
parent
5c48ea2433
commit
3464228deb
|
|
@ -17,7 +17,6 @@ object ConsoleProject
|
|||
val imports = Load.getImports(unit.unit) ++ Load.importAll(bindings.map(_._1))
|
||||
val importString = imports.mkString("", ";\n", ";\n\n")
|
||||
val initCommands = importString + extra
|
||||
val loader = classOf[State].getClassLoader
|
||||
(new Console(compiler))(unit.classpath, Nil, initCommands)(Some(loader), bindings)
|
||||
(new Console(compiler))(unit.classpath, Nil, initCommands)(Some(unit.loader), bindings)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue