aboutsummaryrefslogtreecommitdiff
path: root/stage1
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-12 13:22:01 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-12 13:22:01 -0400
commit2c139c896ae4561bb584aa00e3ec1c88e0c8395b (patch)
tree11cb9d66ced7cf806951e88b0cd48ee1f516d5c0 /stage1
parent12f26b9187eaebb42400bef5cf85f7355b19bb61 (diff)
downloadcbt-2c139c896ae4561bb584aa00e3ec1c88e0c8395b.tar.gz
cbt-2c139c896ae4561bb584aa00e3ec1c88e0c8395b.tar.bz2
cbt-2c139c896ae4561bb584aa00e3ec1c88e0c8395b.zip
fix change propagation
Diffstat (limited to 'stage1')
-rw-r--r--stage1/Stage1Lib.scala6
1 files changed, 5 insertions, 1 deletions
diff --git a/stage1/Stage1Lib.scala b/stage1/Stage1Lib.scala
index f701c72..f5bcb63 100644
--- a/stage1/Stage1Lib.scala
+++ b/stage1/Stage1Lib.scala
@@ -220,12 +220,16 @@ class Stage1Lib( logger: Logger ) extends BaseLib{
val classpath = d.classpath
val cp = classpath.string
+ def lastModified = (
+ cbtLastModified +: d.lastModified +: sourceFiles.map(_.lastModified)
+ ).max
+
if( sourceFiles.isEmpty ){
None
}else{
val start = System.currentTimeMillis
val lastCompiled = statusFile.lastModified
- if( d.lastModified > lastCompiled || sourceFiles.exists(_.lastModified > lastCompiled) ){
+ if( lastModified > lastCompiled ){
def Resolver(urls: URL*) = MavenResolver(cbtLastModified, mavenCache, urls: _*)
val zinc = Resolver(mavenCentral).bindOne(MavenDependency("com.typesafe.zinc","zinc", zincVersion))
val zincDeps = zinc.transitiveDependencies