diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-09 21:20:11 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-09 22:43:00 -0500 |
commit | e8673866b79f7473391dcee26243eee80d5d3cb6 (patch) | |
tree | 16146affeebdb58cd302a1f8527220c906818c96 /test | |
parent | bee13ba7a4458482ce00a5c6bae4cd64328c4e5e (diff) | |
download | cbt-e8673866b79f7473391dcee26243eee80d5d3cb6.tar.gz cbt-e8673866b79f7473391dcee26243eee80d5d3cb6.tar.bz2 cbt-e8673866b79f7473391dcee26243eee80d5d3cb6.zip |
idempotent change propagation
using lastModified instead of a non-idempotent needsUpdate flag
this fixes a bug where dependees would not be rebuilt if cbt exited
or was killed after dependencies were already rebuilt.
Diffstat (limited to 'test')
-rw-r--r-- | test/test.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.scala b/test/test.scala index 332b61e..e9da8bf 100644 --- a/test/test.scala +++ b/test/test.scala @@ -103,7 +103,7 @@ object Main{ val cache = cbtHome ++ "/cache" val mavenCache = cache ++ "/maven" - val cbtHasChanged = true + val cbtLastModified = System.currentTimeMillis implicit val transientCache: java.util.Map[AnyRef,AnyRef] = new java.util.HashMap def Resolver(urls: URL*) = MavenResolver(cbtLastModified, mavenCache, urls: _*) @@ -114,7 +114,7 @@ object Main{ Array(), Array(), start, - cbtHasChanged, + cbtLastModified, null, new HashMap[AnyRef,AnyRef], new HashMap[AnyRef,AnyRef], |