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:
parent
bdd80bdedd
commit
eaf0b96d6c
2 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -73,6 +73,7 @@ class ParsedBuildFile(val buildFile: BuildFile, val context: KobaltContext, val
|
|||
.extractBlock(buildWithCorrectProfiles)
|
||||
|
||||
if (buildScriptInfo != null) {
|
||||
kobaltLog(2, "About to compile build file\n" + buildScriptInfo.content)
|
||||
preBuildScript.add(buildScriptInfo.content)
|
||||
} else {
|
||||
repos.forEach { preBuildScript.add(it) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue