diff options
author | Jan Christopher Vogt <oss.nsp@cvogt.org> | 2016-03-09 00:30:13 -0500 |
---|---|---|
committer | Jan Christopher Vogt <oss.nsp@cvogt.org> | 2016-03-09 00:30:13 -0500 |
commit | 2251bd69446b4e2f05b6fc929c70d5afa4986fe5 (patch) | |
tree | 7bfa44c5e9cf3248ee60f3c929edf3d49f4b3e5f /stage2/Stage2.scala | |
parent | f4ffe8c8937ebe2c14fb4456c4108362f5cd2713 (diff) | |
parent | a5a8515c22a7b434a0da34de48caafbef7e5ee8e (diff) | |
download | cbt-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.scala | 6 |
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) |