commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r563171 - in /commons/proper/dbcp/trunk: pom.xml src/test/org/apache/commons/dbcp/TestJOCLed.java
Date Mon, 06 Aug 2007 15:34:56 GMT
Author: bayard
Date: Mon Aug  6 08:34:55 2007
New Revision: 563171

URL: http://svn.apache.org/viewvc?view=rev&rev=563171
Log:
Fixing DBCP-236 - applying the xerces dependency for testing purposes and putting back the
old org.xml.sax.driver property

Modified:
    commons/proper/dbcp/trunk/pom.xml
    commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestJOCLed.java

Modified: commons/proper/dbcp/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/pom.xml?view=diff&rev=563171&r1=563170&r2=563171
==============================================================================
--- commons/proper/dbcp/trunk/pom.xml (original)
+++ commons/proper/dbcp/trunk/pom.xml Mon Aug  6 08:34:55 2007
@@ -181,6 +181,19 @@
        <scope>test</scope>
     </dependency>
 
+    <!-- required under jdk 1.4 so jocl can have a sax parser -->
+    <dependency>
+      <groupId>xml-apis</groupId>
+      <artifactId>xml-apis</artifactId>
+      <version>2.0.2</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>xerces</groupId>
+      <artifactId>xerces</artifactId>
+      <version>2.4.0</version>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
 
   <build>

Modified: commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestJOCLed.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestJOCLed.java?view=diff&rev=563171&r1=563170&r2=563171
==============================================================================
--- commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestJOCLed.java (original)
+++ commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestJOCLed.java Mon Aug  6
08:34:55 2007
@@ -30,6 +30,9 @@
 public class TestJOCLed extends TestConnectionPool {
     public TestJOCLed(String testName) {
         super(testName);
+        if(null == System.getProperty("org.xml.sax.driver")) {
+           System.setProperty("org.xml.sax.driver","org.apache.xerces.parsers.SAXParser");
+        }
     }
 
     public static Test suite() {



Mime
View raw message