-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resources doesn't play nicely with jquery plugin configs #7
Comments
On 29 Sep 2011, at 01:21, Felipe Rodrigues de Almeida wrote:
Hi Filipe, Just override the "jquery" resource module using the "overrides" mechanism and point it at your new jquery version. This is what the module declaration looks like in jQuery plugin: // Resource declarations for Resources plugin modules = {
} ... so you just add your own AppResources.groovy or whatever you want to call it and add: modules = { This will amend the module to point at your own file. Make sense? Thanks ~ ~ ~ Founder @ http://noticelocal.com | Developer @ http://weceem.org |
Great, It works, but it is not documented anywhere on the docs. Also, would be nice to have a convention. Look for the app version and then for the plugin version? Not sure it is easy to implement. Maybe with some exception fallback or some config instead of a convention. By the way, thanks for the answer. |
I was trying to use resources plugin with the latest version of JQuery.
On the plain JQuery plugin I could do that:
jquery {
sources = 'jquery' // Holds the value where to store jQuery-js files /web-app/js/
version = '1.6.4' // The jQuery version in use
}
And the JQuery tag would know how to find that in my own /js/jquery/ directory.
<g:javascript library="jquery" />
I don't want to update the plugin jquery version on the plugin directory, but the resources plugin can't find the .js on my dir. It keeps giving me this exception:
java.lang.IllegalArgumentException: Module [jquery] depends on resource [/plugins/jquery-1.6.1.1/js/jquery/jquery-1.6.4.min.js] but the file cannot be found
I tried to find where to fix that so I could provide a pull request or something like that, but I couldn't. so far. Any help where to find that or maybe you guys could fix that either. :)
Thanks by the way for the great plugin.
The text was updated successfully, but these errors were encountered: