Closed jfaissolle closed 12 years ago
Same issue. Even for grails run-war
It works well without new ModuleManager().compileModules()
in doWithApplicationContext
. And as I see, all other resources plugins don't do anything in doWithApplicationContext
(most of them have empty method). It's really not a spring configuration.
So, maybe it's better to remove this lines?
With the latest version you can add coffee script resources to resource plugin modules. No problems running the war there :-)
Hello,
when I deploy my application as a war in Tomcat, the plugin tries to compile the coffee sources during the spring configuration phase (because of the code in doWithApplicationContext). This breaks because the source path is not found in this environment. I think that script compilation should not be part of Spring initialization.
I currently use the following workaround / hack in order to be able to use the plugin in dev as well as in prod mode.
scripts/_Events.groovy
grails-app/conf/spring/resources.groovy