jdaugherty opened a new issue, #191: URL: https://github.com/apache/grails-intellij-plugin/issues/191
If a Grails project is using the jaxrs plugin all of the rest resource classes are required to be created in a directory under the main grails-app directory called resources. For some reason in the resource directory is always mapped as a type of "java-resource" in the iml. I have tried several different ways of trying to mark the directory as "src" and not "java-resource", but it always gets changed back to a resource directory. This causes issues with the right click context menu which does not show new package or source commands. All of the source in the directory is also treated as groovy scripts instead of groovy source. IDEA 13 had the same behavior. Steps to reproduce: 1. Create a new Grails app project 2. Add a grails-app/resources directory 3. The resources directory will automatically be marked as java-resources, no change to the directory type will ever allow that to be changed Example lines from the project iml: <sourceFolder url="[file://$MODULE_DIR$/grails-app/resources](file://$MODULE_DIR$/grails-app/resources)" isTestSource="false" /> <sourceFolder url="[file://$MODULE_DIR$/grails-app/resources](file://$MODULE_DIR$/grails-app/resources)" type="java-resource" /> --- *Imported from [IDEA-137176](https://youtrack.jetbrains.com/issue/IDEA-137176) · Type: Bug · Votes: 0* *Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
