On my BuildConfig.groovy, I have:
grails.plugin.location.plugin1 = "../plugin1"
grails.plugin.location.plugin2 = "../plugin2"
environments {
qa2-bamboo {
grails.plugin.location.plugin1 = "../AGP-CON-PLUG/plugin1"
grails.plugin.location.plugin2 = "../AGP-CON-PLUG/plugin2"
}
}
When I'm in qa2-bamboo
. Is grails.plugin.location.plugin1 == "../AGP-CON-PLUG/plugin1"
?
No, that's not supported, but it probably should be for consistency. You can access the current environment value though, so you can do this with if checks
or a switch block: