I used Grails recently, and added Grails plugin for JQuery, but I don’t think it did anything more than just copy some jQuery files over.
So far, I have seen info only on ‘how to install and use’ plugins…but I can’t find anything that describes the concept of a plugin.
Can somebody please tell me, what is a Grails Plugin? And what does it mean to ‘Install’ a plugin?
A Grails plugin is (or should be) a self-contained bundle of functionality that can be installed into a Grails application. When a Grails plugin is installed, it can do any of the following:
web.xmlFor example, when you install the JQuery plugin
<jq:jquery>is added to the applicationgrails install-plugin jqueryis added to the applicationWhen you install a Grails plugin, that plugin’s functionality is made available to the installing application. However, the plugin itself is not actually copied into the application, only the plugin name and version is added to the application’s
application.propertiesfile. The plugin itself is downloaded to$HOME/.grailsand the application loads it from there.The structure of a Grails plugin project is identical to that of a Grails application, with the exception of a configuration file (known as a plugin descriptor) that is included in a plugin’s root directory.