Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Convert println() to log.debug()

  • Loading branch information...
commit 61dee253ddcb5290b433deb82a3c32e96bec7100 1 parent 46ac72a
@vigdorchik vigdorchik authored committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  compile/inc/Incremental.scala
View
3  compile/inc/Incremental.scala
@@ -12,7 +12,6 @@ import java.io.File
object Incremental
{
- def debug(s: => String) = if(java.lang.Boolean.getBoolean("xsbt.inc.debug")) println(s) else ()
def compile(sources: Set[File], entry: String => Option[File], previous: Analysis, current: ReadStamps, forEntry: File => Option[Analysis], doCompile: (Set[File], DependencyChanges) => Analysis, log: Logger)(implicit equivS: Equiv[Stamp]): (Boolean, Analysis) =
{
val initialChanges = changedInitial(entry, sources, previous, current, forEntry)
@@ -27,6 +26,7 @@ object Incremental
(!initialInv.isEmpty, analysis)
}
+ val incDebugProp = "xsbt.inc.debug"
// TODO: the Analysis for the last successful compilation should get returned + Boolean indicating success
// TODO: full external name changes, scopeInvalidations
def cycle(invalidated: Set[File], binaryChanges: DependencyChanges, previous: Analysis, doCompile: (Set[File], DependencyChanges) => Analysis, log: Logger): Analysis =
@@ -34,6 +34,7 @@ object Incremental
previous
else
{
+ def debug(s: => String) = if(java.lang.Boolean.getBoolean(incDebugProp)) log.debug(s) else ()
val pruned = prune(invalidated, previous)
debug("********* Pruned: \n" + pruned.relations + "\n*********")
val fresh = doCompile(invalidated, binaryChanges)
Please sign in to comment.
Something went wrong with that request. Please try again.