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:
parent
edeaae8c4b
commit
a90ef6e6fa
3 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue