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

Log profiles.

This commit is contained in:
Cedric Beust 2016-07-12 01:57:40 -08:00
parent 7030c98b98
commit 0e2cfc69fb

View file

@ -84,6 +84,7 @@ class ParsedBuildFile(val buildFile: BuildFile, val context: KobaltContext, val
(context.profiles as List<String>).forEach { (context.profiles as List<String>).forEach {
if (line.matches(Regex("[ \\t]*val[ \\t]+$it[ \\t]+=.*"))) { if (line.matches(Regex("[ \\t]*val[ \\t]+$it[ \\t]+=.*"))) {
with("val $it = true") { with("val $it = true") {
log(2, "Activating profile $it in build file")
profileLines.add(this) profileLines.add(this)
return this return this
} }