tags:

views:

38

answers:

2

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
A: 

You can also use: ApplicationHolder.application.metadata['app.version']

ecodan
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