Skip to content

Instantly share code, notes, and snippets.

@davydotcom
Created January 10, 2013 17:34
Show Gist options
  • Save davydotcom/4504068 to your computer and use it in GitHub Desktop.
Save davydotcom/4504068 to your computer and use it in GitHub Desktop.
def pm = org.codehaus.groovy.grails.plugins.PluginManagerHolder.pluginManager;
for ( plugin in pm.getAllPlugins() ) {
for ( wp in plugin.getWatchedResourcePatterns() ) {
if ( "plugins" == wp.getDirectory()?.getName() && "groovy" == wp.getExtension() )
wp.extension = "groovyXX";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment