From: | Fernando Nasser <fnasser(at)redhat(dot)com> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | girgen(at)pingpong(dot)net, pgsql-bugs(at)postgresql(dot)org, PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Bug #926: if old postgresql.jar in CLASSPATH, ant fails |
Date: | 2003-05-27 14:00:06 |
Message-ID: | 3ED36F66.1030600@redhat.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-jdbc |
Bruce Momjian wrote:
> JDBC guys, what do you think of this fix? I don't see the change in CVS.
>
Well, it also fails if you have the old postgresql.jar in your java
jre/lib/ext as well and there is no fixed way to exclude it that I know
of. In general, the old jar should not be in any place that is
searched. The user can have his/her CLASSPATH set to some place where
the old jar file is.
On the other hand setting includeAntRuntime="no" would not hurt us
because we are not compiling an Ant (custom) task.
Fernando
> ---------------------------------------------------------------------------
>
> pgsql-bugs(at)postgresql(dot)org wrote:
>
>>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
>>
>
>
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser(at)redhat(dot)com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-05-27 14:14:55 | Re: ERROR: Memory exhausted in AllocSetAlloc(68) |
Previous Message | Rod Taylor | 2003-05-27 13:56:51 | Re: index not used for bigint without explicit cast |
From | Date | Subject | |
---|---|---|---|
Next Message | Fernando Nasser | 2003-05-27 17:56:29 | JDBC: Reinstate autocommit client hack for 7.4 |
Previous Message | Jens Haberer | 2003-05-27 12:30:18 | rsmd.getPrecision(i) + rsmd.isNullable(i) |