dbTalk Databases Forums  

Re: [BUGS] Bug #926: if old postgresql.jar in CLASSPATH, ant fails

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] Bug #926: if old postgresql.jar in CLASSPATH, ant fails in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bruce Momjian
 
Posts: n/a

Default Re: [BUGS] Bug #926: if old postgresql.jar in CLASSPATH, ant fails - 08-16-2003 , 03:55 PM







Is this patch valid for inclusion in jdbc?

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

pgsql-bugs (AT) postgresql (DOT) org wrote:
Quote:
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


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

--
Bruce Momjian | http://candle.pha.pa.us
pgman (AT) candle (DOT) pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.