mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 16:07:12 -07:00
Comment.
This commit is contained in:
parent
6a61b21482
commit
0178500bf8
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,11 @@ import com.beust.kobalt.api.KobaltContext
|
||||||
import com.beust.kobalt.misc.kobaltLog
|
import com.beust.kobalt.misc.kobaltLog
|
||||||
import com.beust.kobalt.misc.warn
|
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) {
|
class Profiles(val context: KobaltContext) {
|
||||||
fun applyProfiles(lines: List<String>): BuildFiles.SplitBuildFile {
|
fun applyProfiles(lines: List<String>): BuildFiles.SplitBuildFile {
|
||||||
val imports = arrayListOf<String>()
|
val imports = arrayListOf<String>()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue