Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.1
-
Fix Version/s: 1.1.1
-
Component/s: None
-
Labels:None
-
Environment:Grails 1.1
Description
It seems that only the files under "grails-app/views" of a plugin will be included in a WAR file.
I created a fresh "testapp" grails 1.1 application and it contains a newly created plugin "testplugin".
"testplugin" has files in grails-app/conf and grails-app/i18n. But those won't be included in the generated WAR file, only grails-app/views.
Found the following code in _GrailsWar.groovy:
I changed the lines at the end to:
fileset(dir:pluginBase.absolutePath) { include(name:"plugin.xml") include(name:"grails-app/**") }Now all necessary files from a plugin will be included in the WAR.
I hope you include this fix in your next release.
fileset(dir:pluginBase.absolutePath) { include(name:"plugin.xml") include(name:"grails-app/**") }