From 2698bc3116127fd927dfc80e582af934bb2701c7 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Thu, 10 Nov 2011 15:47:21 +0530 Subject: [PATCH] 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. --- run/Run.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run/Run.scala b/run/Run.scala index 8c7710753..74520fb03 100644 --- a/run/Run.scala +++ b/run/Run.scala @@ -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) } -} \ No newline at end of file +}