I have an ant build target that creates a test-build directory containing source code and the persistence.xml used to run my unit tests.
Sorry for the total newbie question, but how do I tell IntelliJ to either:
a) look in this test-build directory for the persistence.xml; or
b) look in another existing location so that I don't have to run this ant task.
If I add the whole test-build directory as a Dependencies -> Project Library -> Attach JAR directories then it finds it but also complains about duplicate classes (as now the classes exist on the classpath twice)
If I only add the test-build/META-INF directory then my unit tests can't find it.