I'd like to display the application version in the footer of my app. Is there a way to get the value of the app.version variable in the application.properties file at runtime?
+2
A:
Use <g:meta>
: http://grails.org/doc/latest/ref/Tags/meta.html
Burt Beckwith
2010-07-27 22:21:53
A:
You can also use: ApplicationHolder.application.metadata['app.version']
ecodan
2010-07-28 18:32:17
While this is true, in my particular case I want to include the text in the output. Burt's answer is quicker/easier to do in a GSP page.
speshak
2010-07-28 19:45:12