small change to compiling message

This commit is contained in:
Mark Harrah 2011-05-31 18:37:07 -04:00
parent 7733c57934
commit d54a992c23
1 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ class AggressiveCompile(cacheDirectory: File)
IO.createDirectory(outputDirectory)
val incSrc = sources.filter(include)
val (javaSrcs, scalaSrcs) = incSrc partition javaOnly
logInputs(log, javaSrcs.size, scalaSrcs.size)
logInputs(log, javaSrcs.size, scalaSrcs.size, outputDirectory)
def compileScala() =
if(!scalaSrcs.isEmpty)
{
@ -85,13 +85,13 @@ class AggressiveCompile(cacheDirectory: File)
}
IncrementalCompile(sourcesSet, entry, compile0, analysis, getAnalysis, outputDirectory, log)
}
private[this] def logInputs(log: Logger, javaCount: Int, scalaCount: Int)
private[this] def logInputs(log: Logger, javaCount: Int, scalaCount: Int, out: File)
{
val scalaMsg = Util.counted("Scala source", "", "s", scalaCount)
val javaMsg = Util.counted("Java source", "", "s", javaCount)
val combined = scalaMsg ++ javaMsg
if(!combined.isEmpty)
log.info(combined.mkString("Compiling ", " and ", "..."))
log.info(combined.mkString("Compiling ", " and ", " to " + out.getAbsolutePath + "..."))
}
private def extract(previous: Option[(Analysis, CompileSetup)]): (Analysis, Option[CompileSetup]) =
previous match