Grails static resources plugin updated

Posted by: on Feb 9, 2007 | No Comments

There was a bug in 0.1 – it didn’t work in production because the grails.env system property is never set then, when the plugin expected "production". No amount of unit testing could have helped there :(

0.2 is up at http://grails.org/Static+Resources+Plugin and will be going into Grails Plugin SVN as soon as I get a chance.

Moral of the story when detecting grails environment flavour at runtime is to use grails.utils.GrailsUtil.getEnvironment() as it handles the mutation of a blank env property to "production".

Leave a Reply