Skip to content

Instantly share code, notes, and snippets.

@davydotcom
Created January 10, 2013 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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