Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.5.1
-
None
-
None
Description
As soon as I add the following to my pom.xml:
<resource> <directory>src/test/java</directory> </resource>
A rule gets added to .classpath:
<classpathentry kind="src" path="src/test/java" excluding="**/*.java"/>
The excluding="*/.java" seems to appear out of nowhere causing all java files in eclipse to become unmanaged.
Without this rule resource files in this directory are not added to the eclipse JUnit classpath (we need this since we have wicket HTML files alongside java files). I expect to be able to use this:
<resource> <filtering>false</filtering> <directory>src/test/java</directory> <includes> <include>**</include> </includes> <excludes> <exclude>**/*.java</exclude> </excludes> </resource>
The same way I use this (and this one DOES work!):
<resource> <filtering>false</filtering> <directory>src/main/java</directory> <includes> <include>**</include> </includes> <excludes> <exclude>**/*.java</exclude> </excludes> </resource>