Permalink
Browse files

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.
  • Loading branch information...
1 parent f314225 commit 2698bc3116127fd927dfc80e582af934bb2701c7 @indrajitr indrajitr committed Nov 10, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 run/Run.scala
View
@@ -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)
}
-}
+}

0 comments on commit 2698bc3

Please sign in to comment.