1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -07:00
This commit is contained in:
Cedric Beust 2016-01-06 15:04:50 -08:00
parent 2db5df1897
commit 1c425d9124

View file

@ -88,26 +88,26 @@ class IncrementalManager(val fileName: String = IncrementalManager.BUILD_INFO_FI
if (outputChecksum == taskOutputChecksum) {
upToDate = true
} else {
logIncremental(1, "Incremental task $taskName output is out of date, running it")
logIncremental(2, "Incremental task $taskName output is out of date, running it")
}
}
} else {
logIncremental(1, "Incremental task $taskName input is out of date, running it"
logIncremental(2, "Incremental task $taskName input is out of date, running it"
+ " old: $inputChecksum new: ${iit.inputChecksum}")
}
}
if (! upToDate) {
val result = iit.task(project)
if (result.success) {
logIncremental(1, "Incremental task $taskName done running, saving checksums")
logIncremental(2, "Incremental task $taskName done running, saving checksums")
iit.inputChecksum?.let {
saveInputChecksum(taskName, it)
logIncremental(1, " input checksum \"$it\" saved")
logIncremental(2, " input checksum \"$it\" saved")
}
// Important to rerun the checksum here since the output of the task might have changed it
iit.outputChecksum()?.let {
saveOutputChecksum(taskName, it)
logIncremental(1, " output checksum \"$it\" saved")
logIncremental(2, " output checksum \"$it\" saved")
}
}
result