aboutsummaryrefslogtreecommitdiff
path: root/stage2/Stage2.scala
diff options
context:
space:
mode:
authorJan Christopher Vogt <oss.nsp@cvogt.org>2016-03-09 00:30:13 -0500
committerJan Christopher Vogt <oss.nsp@cvogt.org>2016-03-09 00:30:13 -0500
commit2251bd69446b4e2f05b6fc929c70d5afa4986fe5 (patch)
tree7bfa44c5e9cf3248ee60f3c929edf3d49f4b3e5f /stage2/Stage2.scala
parentf4ffe8c8937ebe2c14fb4456c4108362f5cd2713 (diff)
parenta5a8515c22a7b434a0da34de48caafbef7e5ee8e (diff)
downloadcbt-2251bd69446b4e2f05b6fc929c70d5afa4986fe5.tar.gz
cbt-2251bd69446b4e2f05b6fc929c70d5afa4986fe5.tar.bz2
cbt-2251bd69446b4e2f05b6fc929c70d5afa4986fe5.zip
Merge pull request #70 from cvogt/chris
fixes
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)