1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00
This commit is contained in:
Cedric Beust 2017-04-04 10:50:10 -07:00
parent 18f1df454e
commit abab841119

View file

@ -28,15 +28,15 @@ sealed class IFileSpec {
private fun isIncluded(includeMatchers: Glob, excludes: List<Glob>, rel: Path) : Boolean {
excludes.forEach {
if (it.matches(rel)) {
kobaltLog(3, "Excluding ${rel.toFile()}")
kobaltLog(3, " Excluding ${rel.toFile()}")
return false
}
}
if (includeMatchers.matches(rel)) {
kobaltLog(3, "Including ${rel.toFile().path}")
kobaltLog(3, " Including ${rel.toFile().path}")
return true
}
kobaltLog(2, "Excluding ${rel.toFile()} (not matching any include pattern")
kobaltLog(2, " Excluding ${rel.toFile()} (not matching any include pattern")
return false
}