How to access to a property defined in messages.properties file?
I have a Groovy Grails application and I want to access programmatically to a property defined in messages.properties. As a test, I've tried the following statement: println "capacity.created: ${messages.properties['capacity.created']}" But it doesn't work (throws an exception). Any help is welcomed. Luis For reading property files in Groovy you can use the utility class ConfigSlurper and access the contained properties using GPath expressions. However, you have to be aware that ConfigSlurper doesn't support standard Java property files. Normally the ConfigSlurper will be used to read .groovy