tags:

views:

152

answers:

2

I would like to printout the grails war file version on my main page template, so when I deploy a WAR file, it become easy to recognize which version of the app is running on which server and so on.

Where to set it and how to print it out in a gsp tag?

A: 

I figured out how to display it but still don't know how to set it except by changing it in the application.properties

ApplicationName Version: ${grailsApplication.metadata['app.version']} Built by grailsApplication.metadata['app.grails.version']

I guess its the only way!!

tranced_UT3
+4  A: 

There's a tag you can use as a short cut

<g:meta name="app.version"/>

You can set it using

grails set-version someVersionHere
leebutts