1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-24 23:47:11 -07:00
This commit is contained in:
Cedric Beust 2017-03-30 10:02:47 -07:00
parent 6a61b21482
commit 0178500bf8

View file

@ -4,6 +4,11 @@ import com.beust.kobalt.api.KobaltContext
import com.beust.kobalt.misc.kobaltLog
import com.beust.kobalt.misc.warn
/**
* Manage the replacement of profile lines found in build files. Whenever a line matching
* "val debug by profile()" is found, look up if the profile "debug" is active for this
* build and if it is, replace this line with "val debug = true".
*/
class Profiles(val context: KobaltContext) {
fun applyProfiles(lines: List<String>): BuildFiles.SplitBuildFile {
val imports = arrayListOf<String>()