mirror of https://github.com/sbt/sbt.git
Prevent 'radio silence' for ForkRun.run().
While this increases the verbosity level of `Fork.run()`, it remains consistent with `Run.run()`. Switching between `fork := false` and `fork := true` shouldn't change verbosity of log output.
This commit is contained in:
parent
f314225712
commit
2698bc3116
|
|
@ -17,6 +17,8 @@ class ForkRun(config: ForkScalaRun) extends ScalaRun
|
|||
{
|
||||
def run(mainClass: String, classpath: Seq[File], options: Seq[String], log: Logger): Option[String] =
|
||||
{
|
||||
log.info("Running " + mainClass + " " + options.mkString(" "))
|
||||
|
||||
val scalaOptions = classpathOption(classpath) ::: mainClass :: options.toList
|
||||
val strategy = config.outputStrategy getOrElse LoggedOutput(log)
|
||||
val process = Fork.scala.fork(config.javaHome, config.runJVMOptions, config.scalaJars, scalaOptions, config.workingDirectory, config.connectInput, strategy)
|
||||
|
|
@ -95,4 +97,4 @@ object Run
|
|||
else
|
||||
Some("Nonzero exit code: " + exitCode)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue