Benjamin,

Benjamin Bentmann wrote:
Oleg Gusakov wrote:

If this file sits in the src/main/java/... package - it's one mouse click in Eclipse to open it. If I move it to src/main/resources/.. - it becomes a multi-click - one has to click as many times as there are members in the package name, because Eclipse does not respect "flatten packages" preference for "empty" packages, and folder without java files in it is treated as "empty". So it's 5-8 code clicks instead on one.

Hm, using either the hierarchical mode in combination with the "Fold empty packages" preference or the flat mode in the package explorer works for me with Eclipse 3.4.1.
I found the culprit: if exclude filter of the resource folder is set to exclude contents, package explorer ignores empty folding, and shows package as a real folder.

This discovery does not eliminate the issue, because "maven project import" sets exclude filter *.* on all the resource folders - it rightfully does that to let maven control filtering of resources. As I don't imagine that any self-respecting developer works without m2e, then issue is still there, and it's still a direct consequence of the attempt to move Messages.properties into a resource folder.

From my experience for flattening to work properly, Eclipse needs to ignore the ".svn" directories as otherwise the directories don't look empty. Installing a SVN plugin like Subclipse seems to do this job (though I sometimes needed to close/re-open a project for the package explorer to get properly updated).
The above statement applies - cannot imagine working without SVN plugin :)

On Mac platform there another beast lurking around - the .DS_Store file, causing this issue. Has anyone found a sane way to deal with it if it shows up? I just wrote a script to recursively delete it.

Thanks,
Oleg


Benjamin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to