JDBC build.xml

Started by Liam Stewartover 24 years ago3 messagespatches
Jump to latest
#1Liam Stewart
liams@redhat.com

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.

Liam

--
Liam Stewart :: Red Hat Canada, Ltd. :: liams@redhat.com

Attachments:

patch.txttext/plain; charset=us-asciiDownload+2-0
#2Bruce Momjian
bruce@momjian.us
In reply to: Liam Stewart (#1)
Re: JDBC build.xml

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@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#3Bruce Momjian
bruce@momjian.us
In reply to: Liam Stewart (#1)
Re: JDBC build.xml

Later version of patch applied. Thanks.

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

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.

Liam

--
Liam Stewart :: Red Hat Canada, Ltd. :: liams@redhat.com

[ Attachment, skipping... ]

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

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