hi jesus, are you working with jpa compiler? i tried to follow the example provided in the buildr docs, but i could not get it working.
it always fails with a java.util.MissingResourceException which i thought might be related to http://issues.apache.org/jira/browse/OPENJPA-889 i dont have knowledge of using jpa, so i skipped that example... kind regards, peter ________________________________________ Von: [email protected] [[email protected]] Gesendet: Donnerstag, 10. Dezember 2009 21:41 An: [email protected] Betreff: including resources in classpath for tests I've hit a roadblock and haven't been able to find a solution through the wiki, mailing list or google. I have a persistence.xml file which contains hibernate configuration information, http://pastie.org/737850 It is located in src/test/resources/META-INF/ my buildfile has the following two lines: compile.with COMMONS, DB, JERSEY, JUNIT, LOG4J, HIBERNATE, BOUNCYCASTLE, JDOM, GUICE test.with COMMONS, DB, JERSEY, JUNIT, LOG4J, HIBERNATE, BOUNCYCASTLE, JDOM, DOM4J, HSQLDB, GUICE the tests are failing because it can't find the persistence.xml file. How and where does the test task load the resources? I tried doing some hacks like importing it into the classpath but that doesn't seem to help: Java.classpath << _('src/test/resource/META-INF/persistence.xml') test.with COMMONS, DB, JERSEY, JUNIT, LOG4J, HIBERNATE, BOUNCYCASTLE, JDOM, DOM4J, HSQLDB, GUICE Any thoughts? Thanks jesus rodriguez
