Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 11398 invoked from network); 10 Dec 2009 21:43:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Dec 2009 21:43:08 -0000 Received: (qmail 23038 invoked by uid 500); 10 Dec 2009 21:43:08 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 23009 invoked by uid 500); 10 Dec 2009 21:43:07 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 22999 invoked by uid 99); 10 Dec 2009 21:43:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 21:43:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.188.43.21] (HELO fluorine.blau.de) (217.188.43.21) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 10 Dec 2009 21:42:58 +0000 Received: (qmail 10087 invoked from network); 10 Dec 2009 22:42:35 +0100 Received: from unknown (HELO exchange.blau.de.local) (172.20.0.20) by nl.blau.de with SMTP; 10 Dec 2009 22:42:35 +0100 Received: from exchange.blau.de.local ([172.20.0.20]) by exchange.blau.de.local ([172.20.0.20]) with mapi; Thu, 10 Dec 2009 22:42:35 +0100 From: =?iso-8859-1?Q?Peter_Schr=F6der?= To: "users@buildr.apache.org" Date: Thu, 10 Dec 2009 22:39:56 +0100 Subject: AW: including resources in classpath for tests Thread-Topic: including resources in classpath for tests Thread-Index: Acp52S5vIHLh5qHwSyicsFgWCbGBnwACCKlA Message-ID: <54FF3ED72F41454299EBC44FE688EC200A6E8517@exchange.blau.de.local> References: In-Reply-To: Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org hi jesus, are you working with jpa compiler? i tried to follow the example provided i= n the buildr docs, but i could not get it working. it always fails with a java.util.MissingResourceException which i thought m= ight 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: jmrodri@gmail.com [jmrodri@gmail.com] Gesendet: Donnerstag, 10. Dezember 2009 21:41 An: users@buildr.apache.org Betreff: including resources in classpath for tests I've hit a roadblock and haven't been able to find a solution through the w= iki, mailing list or google. I have a persistence.xml file which contains hibernate configuration inform= ation, 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, JD= OM, 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 a= nd where does the test task load the resources? I tried doing some hacks like importing it into the classpath bu= t 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