aboutsummaryrefslogtreecommitdiff
path: root/stage2/Stage2.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-03-09 00:22:10 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2016-03-09 00:22:10 -0500
commita5a8515c22a7b434a0da34de48caafbef7e5ee8e (patch)
tree7bfa44c5e9cf3248ee60f3c929edf3d49f4b3e5f /stage2/Stage2.scala
parent19fa46346c440c00b9f4a6509784928232c136e2 (diff)
downloadcbt-a5a8515c22a7b434a0da34de48caafbef7e5ee8e.tar.gz
cbt-a5a8515c22a7b434a0da34de48caafbef7e5ee8e.tar.bz2
cbt-a5a8515c22a7b434a0da34de48caafbef7e5ee8e.zip
fix compile looking to only trigger on the provided files, not other files in the same directories
Diffstat (limited to 'stage2/Stage2.scala')
-rw-r--r--stage2/Stage2.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/stage2/Stage2.scala b/stage2/Stage2.scala
index ed63cf1..392e322 100644
--- a/stage2/Stage2.scala
+++ b/stage2/Stage2.scala
@@ -40,14 +40,16 @@ object Stage2{
logger.loop("Looping change detection over:\n - "++allTriggerFiles.mkString("\n - "))
- lib.watch(allTriggerFiles) {
+ lib.watch(allTriggerFiles){
case file if triggerCbtFiles.exists(file.toString startsWith _.toString) =>
logger.loop("Change is in CBT's own source code.")
logger.loop("Restarting CBT.")
scala.util.control.Breaks.break
case file if triggerFiles.exists(file.toString startsWith _.toString) =>
- new lib.ReflectBuild( lib.loadDynamic(context) ).callNullary(task)
+ val reflectBuild = new lib.ReflectBuild( lib.loadDynamic(context) )
+ logger.loop(s"Re-running $task for " ++ reflectBuild.build.projectDirectory.toString)
+ reflectBuild.callNullary(task)
}
} else {
new lib.ReflectBuild(build).callNullary(task)