diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-12 22:00:00 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-12 22:34:02 -0400 |
commit | 828adac48d0e08766d192c7ce01021083cfc4d67 (patch) | |
tree | 06e19c3f9117c24e6c6a5e8a95990011a0efe4b3 /stage1/Stage1Lib.scala | |
parent | c14e288996d2b56b6b06a0624f4f2fca315369c7 (diff) | |
download | cbt-828adac48d0e08766d192c7ce01021083cfc4d67.tar.gz cbt-828adac48d0e08766d192c7ce01021083cfc4d67.tar.bz2 cbt-828adac48d0e08766d192c7ce01021083cfc4d67.zip |
fix file watching for real
last file watching update didn’t work well enough. This now
- rips out barbary watch service as it seems buggy crashing the jvm
- make cbt exclusively write files to watch to a file
- uses fswatch instead watching all files in that file
Diffstat (limited to 'stage1/Stage1Lib.scala')
-rw-r--r-- | stage1/Stage1Lib.scala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/stage1/Stage1Lib.scala b/stage1/Stage1Lib.scala index d99354c..1cda9fd 100644 --- a/stage1/Stage1Lib.scala +++ b/stage1/Stage1Lib.scala @@ -204,7 +204,6 @@ class Stage1Lib( logger: Logger ) extends BaseLib{ } } - def compile( cbtLastModified: Long, sourceFiles: Seq[File], @@ -475,6 +474,13 @@ ${sourceFiles.sorted.mkString(" \\\n")} cache.get( cp, lastModified ) } + def addLoopFiles(cwd: File, files: Set[File]) = { + lib.write( + cwd / "target/.cbt-loop.tmp", + files.map(_ + "\n").mkString, + StandardOpenOption.APPEND + ) + } } import scala.reflect._ |