1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 00:38:11 -07:00

Less chatty.

This commit is contained in:
Cedric Beust 2016-02-20 15:14:58 -08:00
parent f5d861db67
commit 658eba8ee9

View file

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