Skip site navigation (1) Skip section navigation (2)

Re: JDBC build.xml

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Liam Stewart <liams(at)redhat(dot)com>
Cc: PostgreSQL Patches List <pgsql-patches(at)postgresql(dot)org>
Subject: Re: JDBC build.xml
Date: 2002-03-11 17:21:00
Message-ID: 200203111721.g2BHL0P18434@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
Your patch has been added to the PostgreSQL unapplied patches list at:

	http://candle.pha.pa.us/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

(New version of patch attached.)

---------------------------------------------------------------------------


Liam Stewart wrote:
> 
> 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.

Index: src/interfaces/jdbc/build.xml
===================================================================
RCS file: /projects/cvsroot/pgsql/src/interfaces/jdbc/build.xml,v
retrieving revision 1.20
diff -c -r1.20 build.xml
*** src/interfaces/jdbc/build.xml       2002/02/24 16:12:51     1.20
--- src/interfaces/jdbc/build.xml       2002/02/25 21:08:53
***************
*** 99,104 ****
--- 99,106 ----
        <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>

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-patches by date

Next:From: Paul VixieDate: 2002-03-11 18:50:59
Subject: Re: IPv6 Support for INET/CIDR types.
Previous:From: Bruce MomjianDate: 2002-03-11 17:05:17
Subject: Re: support for POSIX 1003.1-2001 hosts

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group