mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
BuildParser fix.
This commit is contained in:
parent
5ea2fe30b0
commit
87c56d320e
1 changed files with 3 additions and 1 deletions
|
@ -60,8 +60,10 @@ class BlockExtractor(val regexp: Pattern, val opening: Char, val closing: Char)
|
||||||
result.append(line).append("\n")
|
result.append(line).append("\n")
|
||||||
} else {
|
} else {
|
||||||
val allowedImports = listOf("com.beust", "java")
|
val allowedImports = listOf("com.beust", "java")
|
||||||
|
val disallowedImports = listOf("com.beust.kobalt.plugin")
|
||||||
if (! line.startsWith("import") ||
|
if (! line.startsWith("import") ||
|
||||||
(line.startsWith("import") && allowedImports.any { line.contains(it) })) {
|
(line.startsWith("import") && allowedImports.any { line.contains(it) }
|
||||||
|
&& ! disallowedImports.any { line.contains(it) })) {
|
||||||
topLines.add(line)
|
topLines.add(line)
|
||||||
}
|
}
|
||||||
updateCount(line)
|
updateCount(line)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue