I'd like to append the env name on each war i build automatically (grails [dev|test|prod] war
I tried to do the following in BuildConfig.groovy but nothing changed:
switch (grails.util.GrailsUtil.environment) {
case "development":
grails.project.war.file = "target/${appName}-dev-${appVersion}"
case "test":
grails.project.war.file = "target/${appName}-test-${appVersion}"
case "production":
grails.project.war.file = "target/${appName}-prod-${appVersion}"
}
Any thoughts? of course I can change it manually on the command line but i'd thought i'd do it a little cleaner if possible...