Bug #926: if old postgresql.jar in CLASSPATH, ant fails

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #926: if old postgresql.jar in CLASSPATH, ant fails
Date: 2003-03-29 11:15:08
Message-ID: 20030329111508.4F590476105@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-jdbc

Palle Girgensohn (girgen(at)pingpong(dot)net) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
if old postgresql.jar in CLASSPATH, ant fails

Long Description
See http://www.freebsd.org/cgi/query-pr.cgi?pr=48878

If there is an older postgresql.jar file in the ant classpath when building a new postgresql.jar, it will fail.

Sample Code
Adding includeAntRuntime="no" to the compile target in build.xml, as suggested by Tetsurou Okazaki <okazaki(at)FreeBSD(dot)org>, fixes the problem

--- src/interfaces/jdbc/build.xml~ Sun Oct 20 02:10:55 2002
+++ src/interfaces/jdbc/build.xml Mon Mar 3 12:10:37 2003
@@ -101,7 +101,7 @@

<!-- This is the core of the driver. It is common for all three versions. -->
<target name="compile" depends="prepare,check_versions,driver">
- <javac srcdir="${srcdir}" destdir="${builddir}" debug="${debug}">
+ <javac includeAntRuntime="no" srcdir="${srcdir}" destdir="${builddir}" debug="${debug}">
<include name="${package}/**" />

<exclude name="${package}/jdbc1/**" unless="jdbc1"/>

No file was uploaded with this report

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Stephan Szabo 2003-03-29 15:37:21 Re: Server process crashes when using count(field).
Previous Message KroK 2003-03-29 10:28:51 Server process crashes when using count(field).

Browse pgsql-jdbc by date

  From Date Subject
Next Message John Pfersich 2003-03-30 00:56:33 JDO
Previous Message Hans-Jürgen Schönig 2003-03-28 20:21:03 Re: Call pl/sql function