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

Clean up.

This commit is contained in:
Cedric Beust 2016-02-15 13:14:32 -08:00
parent ce4bbbe27a
commit 8ccece97e0

View file

@ -30,14 +30,14 @@ sealed class IFileSpec {
} }
} }
if (includeMatchers.matches(rel)) { if (includeMatchers.matches(rel)) {
log(2, "Including ${rel.toFile()}") log(2, "Including ${rel.toFile().absolutePath}")
return true return true
} }
log(2, "Excluding ${rel.toFile()} (not matching any include pattern") log(2, "Excluding ${rel.toFile()} (not matching any include pattern")
return false return false
} }
override public fun toFiles(filePath: String, excludes: List<Glob>): List<File> { override fun toFiles(filePath: String, excludes: List<Glob>): List<File> {
val result = arrayListOf<File>() val result = arrayListOf<File>()
val includes = Glob(*spec.toTypedArray()) val includes = Glob(*spec.toTypedArray())
@ -60,7 +60,7 @@ sealed class IFileSpec {
return result return result
} }
override public fun toString(): String { override fun toString(): String {
var result = "" var result = ""
spec.apply { spec.apply {
if (!isEmpty()) { if (!isEmpty()) {