nbsbt icon indicating copy to clipboard operation
nbsbt copied to clipboard

does not handle /src/main/webapp

Open michaelajr opened this issue 10 years ago • 2 comments

Should probably be able to see "Web Pages" in my project view, as I do with a Maven project.

michaelajr avatar Apr 28 '14 15:04 michaelajr

I agree that how nbsbt/nbscala handles Scala web apps is a weakness. Play apps have an unusual directory structure and are essentially unsupported in that neither the Scala code nor the web code is displayed in the project view. An app with Scala code in the usual location but that also has web pages, which sounds like what @michaelajr is describing does not show the web portion of the app.

I think a step in the right direction would be to add anything that's in the src folders that's not already recognized (Scala code, resources, etc.) under a generic "other sources" node so that you can at least see and open them without resorting to the File tab.

michaelpigg avatar Apr 29 '14 13:04 michaelpigg

Good idea @michaelpigg. That would help. But I also think that if the project is an SBT project, and there is a src/main/webapp directory - the Project View might as well show it as a "Web Pages" node (a la a Maven project). SBT seems kind of Mavenish in that aspect having a specific convention/location for the web part of a project.

michaelajr avatar Apr 29 '14 13:04 michaelajr