grails-plugins/grails-resources — pull request #19 by robfletcher (2012-06-19 18:25:04+00:00)
Title: Fix problem where reloading fails for inline plugin resource

The `isResourceWeShouldProcess` method assumes that any resource is in a sub-directory of the application's base directory. When using inline plugins this is probably not the case & hence the `substring` call failed with a `StringIndexOutOfBoundsException`. Since it looks like the plugin was just trying to get a file path relative to the `web-app` directory to see if it's in an exclude pattern list I've changed it to just strip anything up to and including `web-app/` from the canonical file path.