mirror of https://github.com/sbt/sbt.git
add jline jar to classpath for :power mode
This commit is contained in:
parent
c98c9bb727
commit
4fd7611074
|
|
@ -41,7 +41,7 @@ class AnalyzingCompiler(val scalaInstance: ScalaInstance, val manager: Component
|
|||
def console(classpath: Seq[File], options: Seq[String], initialCommands: String, log: Logger)(loader: Option[ClassLoader] = None, bindings: Seq[(String, Any)] = Nil): Unit =
|
||||
{
|
||||
val arguments = new CompilerArguments(scalaInstance, cp)
|
||||
val classpathString = CompilerArguments.absString(arguments.finishClasspath(classpath))
|
||||
val classpathString = CompilerArguments.absString(arguments.finishClasspath(classpath ++ jlineJar))
|
||||
val bootClasspath = if(cp.autoBoot) arguments.createBootClasspath else ""
|
||||
val (names, values) = bindings.unzip
|
||||
call("xsbt.ConsoleInterface", log)(
|
||||
|
|
@ -80,4 +80,7 @@ class AnalyzingCompiler(val scalaInstance: ScalaInstance, val manager: Component
|
|||
new classpath.DualLoader(scalaLoader, notXsbtiFilter, x => true, sbtLoader, xsbtiFilter, x => false)
|
||||
}
|
||||
override def toString = "Analyzing compiler (Scala " + scalaInstance.actualVersion + ")"
|
||||
lazy val jlineJar =
|
||||
try { IO.classLocationFile[jline.ConsoleReader] :: Nil }
|
||||
catch { case e: Exception => Nil }
|
||||
}
|
||||
Loading…
Reference in New Issue