Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
For consistency with Maven dependency rules, the contents of src/test/java and src/test/resources should not be exported to the classpath of dependent projects. (This is handy for files like log4j.xml where a particularly verbose configuration might only make sense when testing the project itself.)
In Eclipse, it's probably not possible to achieve this for a source folder like src/test/java (source folders are always exported), but at least src/test/resources could be added to the classpath as a class folder, rather than a source folder.
It's probably best if this is optional, because you can't exclude */.java from a class folder, as you can for a source folder. It must be rare to put .java files in src/test/resources, but I'm sure they're out there!