mirror of https://github.com/sbt/sbt.git
cleanup
This commit is contained in:
parent
77092b7888
commit
b996a95157
|
|
@ -18,10 +18,8 @@ class ForkRun(config: ForkScalaRun) extends ScalaRun
|
|||
def run(mainClass: String, classpath: Seq[File], options: Seq[String], log: Logger): Option[String] =
|
||||
{
|
||||
val scalaOptions = classpathOption(classpath) ::: mainClass :: options.toList
|
||||
val exitCode = config.outputStrategy match {
|
||||
case Some(strategy) => Fork.scala(config.javaHome, config.runJVMOptions, config.scalaJars, scalaOptions, config.workingDirectory, strategy)
|
||||
case None => Fork.scala(config.javaHome, config.runJVMOptions, config.scalaJars, scalaOptions, config.workingDirectory, LoggedOutput(log))
|
||||
}
|
||||
val strategy = config.outputStrategy getOrElse LoggedOutput(log)
|
||||
val exitCode = Fork.scala(config.javaHome, config.runJVMOptions, config.scalaJars, scalaOptions, config.workingDirectory, strategy)
|
||||
processExitCode(exitCode, "runner")
|
||||
}
|
||||
private def classpathOption(classpath: Seq[File]) = "-cp" :: Path.makeString(classpath) :: Nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue