Details
Description
It would be nice to be able to organize the domain classes in subfolders under grails-app/domain, but with the last version from the svn it produces a "Groovy Bug!" (org.codehaus.groovy.grails.exceptions.GrailsConfigurationException: Groovy Bug! Resource [ServletContext resource [/WEB-INF/grails-app/domain/ref/Post.groovy]] loaded, but not returned by GCL.).
Before my last svn up on the grails source code it was working.
Issue Links
| This issue relates to: | ||||
| GRAILS-1243 | Improve support for Controllers to be placed in sub-folders/packages. |
|
|
|
| GRAILS-221 | Add support for Controllers to be placed in sub-folders/packages. |
|
|
|
| This issue is related to: | ||||
| GRAILS-1243 | Improve support for Controllers to be placed in sub-folders/packages. |
|
|
|
| GRAILS-221 | Add support for Controllers to be placed in sub-folders/packages. |
|
|
|
During a past discussion with Graeme, one way we could support this is to allow loading of classes in subdirectories, but users will not be permitted to include a package clause. This means their class names must still be unique in the whole class graph.
The rationale for this is that importing classes (which is required if they are in packages) is anatheme to dynamic programming in essence, and service injection by name will become ugly and problematic.