开发者

can't resolve plugin class in grails

i've added a plugin called Image tool plugin for image resizeing... but when i called an instance of it

def imageTool = new ImageTool()

it gives me compilation error cause it can't resolve ImageTool class . i've tried to put import import org.grails.plugins.imagetools.ImageTool

as a suggestion from a s开发者_StackOverflow中文版ite .. but it didn't work .. so what is the real path to the imageTool so i can import it?? any help please:)


You can't access a class from the default package in a class that's in a package, and ImageTool is in the default package. The easiest thing to do is move that class into a subfolder, e.g. src/imagetool and add "package imagetool" to the source. You'll need to do this for each developer.

The plugin has moved to http://github.com/ricardojmendez/grails-imagetools/ and this has been fixed in that code, but I don't know if they have done a new release.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜