开发者

doWithDynamicMethods not being Called

开发者 https://www.devze.com 2023-01-20 13:36 出处:网络
When I create a production war (grails war --nojars) my doWithDynamicMethods is not being called in a production environment. The code works in the dev env (ie grails run-app)

When I create a production war (grails war --nojars) my doWithDynamicMethods is not being called in a production environment. The code works in the dev env (ie grails run-app)

Here is some of my code:

PDFFormsGrailsPlugin.groovy (in PD开发者_如何学编程FForms (plugin) directory) :-

 def doWithDynamicMethods = { ctx ->
  println "Adding renderPDFForm to controller";

  for (controllerClass in application.controllerClasses) {
   updateControllers controllerClass.metaClass
  } 
    }

BuildConfig.groovy (in Application using Plugin) :-

grails.plugin.location.'pdff-orms' = "../PDFForms"

We are using Grails 1.3.5 on Windows XP, The Build is called from STS 2.3.3.CI-R5462-B20

Thanks in advance.


Check if the plugin is referenced in your grails.xml.

Read this Nabble thread

And this jira

P.S. Why not you upgrade to grails 1.3.7 at least?!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号