I'm using the spring PetClinic as an example application to follow. I have things building and working in maven2, but I'm having an issue with the junit tests.
I'd like to be able to share one of my application-context.xml files that is in my src/main/resources directory without having to keep it in two places. The application example I'm using for testing needs to call AbstractJpaTests which requires one to override the getConfigPaths. The problem is how do I get a handle outside of the test-classes in which the tests are being run? //the files below exist in my tests-classes directory, but I'd also like to use the one in my standard classes directory as well. // the / slash only seems to bring me to the base of my test-classes directory @Override protected String[] getConfigPaths() { return new String[] { "/applicationContext-jpa.xml", "/applicationContext-entityManager.xml" }; } } I've even tried adding an extra entry in my pom.xml for to use the main resources as well but it didn't seem to help: <testResources> <testResource> <directory>src/main/resources</directory> <includes> <include>**/*.xml</include> </includes> </testResource> <testResource> <directory>src/test/resources</directory> <includes> <include>**/*.xml</include> </includes> </testResource> </testResources> -- Rick --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]