applied patch from Liam Stewart
authorDave Cramer <davec@fastcrypt.com>
Tue, 19 Mar 2002 01:32:48 +0000 (01:32 +0000)
committerDave Cramer <davec@fastcrypt.com>
Tue, 19 Mar 2002 01:32:48 +0000 (01:32 +0000)
If one is trying to compile a JDBC 1 driver and junit.jar is in the
CLASSPATH, then the build fails as ant tries to build the JDBC 2 test
classes. This patch fixes this problem by excluding the jdbc 2 files
unless the jdk1.2+ property is set.

src/interfaces/jdbc/build.xml

index 1f64e3526479491a486371e6d8ad303d1bcb27de..5512dfd9763917b2078606865ff2a7d5bb2a62db 100644 (file)
@@ -99,6 +99,8 @@
       <exclude name="${package}/xa/**" unless="datasource" />
 
       <exclude name="${package}/test/**" unless="junit" />
+      <exclude name="${package}/test/jdbc2/**" unless="jdbc2" />
+      <exclude name="${package}/test/JDBC2Tests.java" unless="jdbc2" />
     </javac>
   </target>