It is convenient to have the resource folders in a flat layout like packages.
I have often wished that I could also make the src/main/webapp/ and WEB-INF
directories appear this way.
The main benefits are that you don't need to drill down through several folders
to get where you want (quick), and it hides directories without any files
(better overview).
It would also be my preference to make it obvious what JDT is processing and
what m2e is processing.
So I propose marking files or folders with the m2e icon decorator to show the
behaviour.
Perhaps in the future eclipse will allow the package layout for purely visual
purposes and detach its relationship with the buildpath.
My 3 cents!
Adam
Igor Fedorenko on 15/05/08 16:49, wrote:
In order to make resource folders easier to spot in Package Explorer,
m2e adds these folders to java project build path. For example, attached
sourcefolder.PNG shows a simple webapp with single resources folder
"src/main/resources".
As you can see in attached buildpath.PNG, resource folders are
configured in such a way that no resources are actually processed by
JDT, i.e. excludes=** and also note location of the Output Folder. In
other words, m2e adds resource folders to java build path strictly for
visual purposes.
There were number of questions about this feature that seems to suggest
some/many people find it confusing so we decided to ask if we should
make it configurable or get rid of it altogether.
Attached plainfolder.PNG shows how the same webapp project would look in
Package Explorer with this feature turned off.
And here are screenshots of a simple java project with this feature on
and off (quickstarton.PNG and quickstartoff.PNG respectively).
So, what do you think? Is this useful, confusing or does not really matter?
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email