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

Variables in buildScript().

This commit is contained in:
Cedric Beust 2017-03-07 18:27:45 -08:00
parent bdd80bdedd
commit eaf0b96d6c
2 changed files with 4 additions and 1 deletions

View file

@ -60,7 +60,9 @@ class BlockExtractor(val regexp: Pattern, val opening: Char, val closing: Char)
result.append(topLines.joinToString("\n"))
result.append(line).append("\n")
} else {
topLines.add(line)
if (! line.startsWith("import") || (line.startsWith("import") && line.contains("com.beust"))) {
topLines.add(line)
}
updateCount(line)
}