I want to include the Grails application name in some of my configuration settings in grails-app/Config.groovy
. I\'ve tried many ways without success. For example
try this:
edu.appname1 = appName
or if you want to use as part of a longer configuration parameter
edu.appname1 = "something.$appName.else"
To get the appName in a config file that you're including with grails.config.locations
you can use:
appName = grails.util.Metadata.current.'app.name'