Tuesday, July 7, 2009

grails plugins eclipse class path settings

Grails 1.1 the plugin files are not part of the source tree, instead they are exploded under user.home\.grails\{version}\projects\{project}\plugins

In case your classes are referring to any classes / interfaces that are defined in the plugin you can add the code under the above path as a source path.

I did the following for Taggable plugin -
Added a variable GRAILS_PLUGIN_DIR & pointed it to user.home\.grails\projects\plugins
Added a source path by using "Link Source" option, extended the above variable GRAILS_PLUGIN_DIR\taggable-{version}\src\groovy

With this change eclipse is able to find the Taggable interface and stop's complaining about missing imports.

No comments: