1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -07:00

Disable incremental compilation if build file was modified.

This commit is contained in:
Cedric Beust 2016-04-02 07:14:32 -07:00
parent edeaae8c4b
commit a90ef6e6fa
3 changed files with 10 additions and 2 deletions

View file

@ -41,4 +41,10 @@ class InternalContext {
private val incrementalSuccesses = hashSetOf<String>()
fun previousTaskWasIncrementalSuccess(projectName: String) = incrementalSuccesses.contains(projectName) ?: false
fun setIncrementalSuccess(projectName: String) = incrementalSuccesses.add(projectName)
/**
* Keep track of whether the build file was modified. If this boolean is true, incremental compilation
* will be disabled.
*/
var buildFileOutOfDate: Boolean = false
}