Issue Details (XML | Word | Printable)

Key: GRAILS-2641
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Graeme Rocher
Reporter: Sam Pullara
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Grails

Grails searches the entire current directory tree for plugins

Created: 15/Mar/08 08:31 PM   Updated: 17/Mar/08 07:49 AM   Resolved: 17/Mar/08 07:49 AM
Component/s: Plugins
Affects Version/s: 1.0.1
Fix Version/s: 1.0.2

Time Tracking:
Not Specified

Environment: Mac OS X 10.5, Java 1.5


 Description  « Hide

When you execute:

grails create-app appname

You might be in a really big directory, as I was this morning. In that case, this line:

src/commons/org/codehaus/groovy/grails/cli/GrailsScriptRunner.groovy:185
def plugins = RESOLVER.getResources("file:${baseDir.absolutePath}/**/*GrailsPlugin.groovy")

Attempts to search that entire directory tree for GrailsPlugins. This does not scale well. I have millions of files under parts of the tree where I might want to create a Grails application. Suggested fix would be to be more specific about where these plugins can live.



There are no comments yet on this issue.