While running JUnit integration tests inside Eclipse, I have two persistence.xml files on the classpath - one containing the configuration for the test cases and another one for production. I need to find a way to exclude the persistence.xml for production from the test classpath.
Constraints: I am not allowed to use Maven or Ant, just Eclipse Helios SR1 (with JUnit). The JPA 2 persistence provider is EclipseLink 2.2.0. As I have to use ClearCase 7.0 as VCS, no linked resources are possible, as described here, for example.
Here is the rough project structure:
project-datamodel (containing the Entity beans)
\- src/resources/META-INF/persistence.xml (for production; want to exclude it)
\- test/resources/META-INF/persistence.xml (for test)
project-service (containing the Session beans)
\- ejbModule
project-service-it (containing the JUnit integration tests for the Session beans)
\- test