mirror of https://github.com/sbt/sbt.git
Fix console-project
This commit is contained in:
parent
c6621d9a58
commit
8135c5bd55
|
|
@ -106,8 +106,10 @@ object Run
|
|||
{
|
||||
override def createInterpreter()
|
||||
{
|
||||
val loader = project.getClass.getClassLoader.asInstanceOf[URLClassLoader]
|
||||
compilerSettings.classpath.value = loader.getURLs.flatMap(ClasspathUtilities.asFile).map(_.getAbsolutePath).mkString(File.pathSeparator)
|
||||
def urlClassLoader(c: Class[_]) = c.getClassLoader.asInstanceOf[URLClassLoader]
|
||||
val loader = urlClassLoader(project.getClass)
|
||||
val urls = List(loader, urlClassLoader(classOf[xsbti.Launcher])).flatMap(_.getURLs) // TODO: this is fragile and should be done better
|
||||
compilerSettings.classpath.value = urls.flatMap(ClasspathUtilities.asFile).map(_.getAbsolutePath).mkString(File.pathSeparator)
|
||||
project.log.debug(" Compiler classpath: " + compilerSettings.classpath.value)
|
||||
|
||||
in = InteractiveReader.createDefault()
|
||||
|
|
|
|||
Loading…
Reference in New Issue