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:
Indrajit Raychaudhuri 2011-11-10 15:47:21 +05:30
parent f314225712
commit 2698bc3116
1 changed files with 3 additions and 1 deletions

View File

@ -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)
}
}
}