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

Lists: pgsql-bugspgsql-jdbc
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
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


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: girgen(at)pingpong(dot)net, pgsql-bugs(at)postgresql(dot)org
Cc: PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Bug #926: if old postgresql.jar in CLASSPATH, ant fails
Date: 2003-05-26 18:57:26
Message-ID: 200305261857.h4QIvQh11854@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-jdbc


JDBC guys, what do you think of this fix? I don't see the change in CVS.

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

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
>

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


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
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: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: girgen(at)pingpong(dot)net, pgsql-bugs(at)postgresql(dot)org
Cc: PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Bug #926: if old postgresql.jar in CLASSPATH, ant fails
Date: 2003-08-16 20:54:56
Message-ID: 200308162054.h7GKsuC28778@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-jdbc


Is this patch valid for inclusion in jdbc?

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

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
>

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


From: Palle Girgensohn <girgen(at)pingpong(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: 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-08-17 13:57:16
Message-ID: B5A76517-D0BA-11D7-A482-00050229DAF8@pingpong.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-jdbc

It's been in use for the freebsd port for some months now, so I say
yes. ;-)

/Palle

lördagen den 16 augusti 2003 kl 22.54 skrev Bruce Momjian:

>
> Is this patch valid for inclusion in jdbc?
>
> -----------------------------------------------------------------------
> ----
>
> 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
>>
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> + If your life is a hard drive, | 13 Roberts Road
> + Christ can be your backup. | Newtown Square, Pennsylvania
> 19073


From: Dave Cramer <Dave(at)micro-automation(dot)net>
To: Palle Girgensohn <girgen(at)pingpong(dot)net>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-bugs(at)postgresql(dot)org, PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [JDBC] Bug #926: if old postgresql.jar in CLASSPATH,
Date: 2003-08-18 01:55:16
Message-ID: 1061171716.1596.38.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-jdbc

Yes, agreed

Dave
On Sun, 2003-08-17 at 09:57, Palle Girgensohn wrote:
> It's been in use for the freebsd port for some months now, so I say
> yes. ;-)
>
> /Palle
>
> lördagen den 16 augusti 2003 kl 22.54 skrev Bruce Momjian:
>
> >
> > Is this patch valid for inclusion in jdbc?
> >
> > -----------------------------------------------------------------------
> > ----
> >
> > 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
> >>
> >
> > --
> > Bruce Momjian | http://candle.pha.pa.us
> > pgman(at)candle(dot)pha(dot)pa(dot)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 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
--
Dave Cramer <Dave(at)micro-automation(dot)net>


From: Barry Lind <blind(at)xythos(dot)com>
To: Dave(at)micro-automation(dot)net
Cc: Palle Girgensohn <girgen(at)pingpong(dot)net>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [BUGS] Bug #926: if old postgresql.jar in CLASSPATH,
Date: 2003-08-21 20:16:48
Message-ID: 3F4528B0.8080609@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-jdbc

Can someone explain to me why this change fixes the problem?

I don't understand why including 'includeAntRuntime="no"' in the javac
tag will cause the compile to no longer pick up old versions of the
driver that may be around. There are two cases that I am familiar with
of this problem: 1) there is a old postgresql jdbc jar file in the
CLASSPATH environment, and 2) there is an old jar in the jre/lib/ext
directory. I can see where this patch might prevent 1 (although the
property name and doc aren't very clear on that) but I don't see how it
would fix 2.

thanks,
--Barry

Dave Cramer wrote:
> Yes, agreed
>
> Dave
> On Sun, 2003-08-17 at 09:57, Palle Girgensohn wrote:
>
>>It's been in use for the freebsd port for some months now, so I say
>>yes. ;-)
>>
>>/Palle
>>
>>lördagen den 16 augusti 2003 kl 22.54 skrev Bruce Momjian:
>>
>>
>>>Is this patch valid for inclusion in jdbc?
>>>
>>>-----------------------------------------------------------------------
>>>----
>>>
>>>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
>>>>
>>>
>>>--
>>> Bruce Momjian | http://candle.pha.pa.us
>>> pgman(at)candle(dot)pha(dot)pa(dot)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 2: you can get off all lists at once with the unregister command
>> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>>


From: Dave Cramer <Dave(at)micro-automation(dot)net>
To: Barry Lind <blind(at)xythos(dot)com>
Cc: Palle Girgensohn <girgen(at)pingpong(dot)net>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [BUGS] Bug #926: if old postgresql.jar in CLASSPATH,
Date: 2003-08-21 21:02:36
Message-ID: 1061499756.2211.35.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-jdbc

I think you are correct, this will not fix 2, is it possible to detect
if a class is present in ant, and fail?

dave
On Thu, 2003-08-21 at 16:16, Barry Lind wrote:
> Can someone explain to me why this change fixes the problem?
>
> I don't understand why including 'includeAntRuntime="no"' in the javac
> tag will cause the compile to no longer pick up old versions of the
> driver that may be around. There are two cases that I am familiar with
> of this problem: 1) there is a old postgresql jdbc jar file in the
> CLASSPATH environment, and 2) there is an old jar in the jre/lib/ext
> directory. I can see where this patch might prevent 1 (although the
> property name and doc aren't very clear on that) but I don't see how it
> would fix 2.
>
> thanks,
> --Barry
>
>
> Dave Cramer wrote:
> > Yes, agreed
> >
> > Dave
> > On Sun, 2003-08-17 at 09:57, Palle Girgensohn wrote:
> >
> >>It's been in use for the freebsd port for some months now, so I say
> >>yes. ;-)
> >>
> >>/Palle
> >>
> >>lördagen den 16 augusti 2003 kl 22.54 skrev Bruce Momjian:
> >>
> >>
> >>>Is this patch valid for inclusion in jdbc?
> >>>
> >>>-----------------------------------------------------------------------
> >>>----
> >>>
> >>>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
> >>>>
> >>>
> >>>--
> >>> Bruce Momjian | http://candle.pha.pa.us
> >>> pgman(at)candle(dot)pha(dot)pa(dot)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 2: you can get off all lists at once with the unregister command
> >> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
> >>
>
>
>
--
Dave Cramer <Dave(at)micro-automation(dot)net>


From: Palle Girgensohn <girgen(at)pingpong(dot)net>
To: Dave(at)micro-automation(dot)net
Cc: Barry Lind <blind(at)xythos(dot)com>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [BUGS] Bug #926: if old postgresql.jar in CLASSPATH,
Date: 2003-08-22 00:14:51
Message-ID: 1061511291.3f45607b09150@webmail.pingpong.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg스포츠 토토 사이트SQL : Postg스포츠 토토 사이트SQL 메일 링리스트 : 2003-08-22 00:14 이후의 PGSQL-BUGS. Postg토토 사이트 추천SQL : Postg토토 사이트 추천SQL 메일 링리스트 : 2003-08-22 00:14 이후 PGSQL-JDBC

Nop, it will only protect against 1. This is better than nothing. And why would
anyone even dream of to put jars in jre/lib/ext? Seems rather error prone to
me... Still, the best would be to let ant die or don't care if org.postgresql
classes are loaded...

/Palle

Citerar Dave Cramer <Dave(at)micro-automation(dot)net>:

> I think you are correct, this will not fix 2, is it possible to detect
> if a class is present in ant, and fail?
>
> dave
> On Thu, 2003-08-21 at 16:16, Barry Lind wrote:
> > Can someone explain to me why this change fixes the problem?
> >
> > I don't understand why including 'includeAntRuntime="no"' in the javac
> > tag will cause the compile to no longer pick up old versions of the
> > driver that may be around. There are two cases that I am familiar with
> > of this problem: 1) there is a old postgresql jdbc jar file in the
> > CLASSPATH environment, and 2) there is an old jar in the jre/lib/ext
> > directory. I can see where this patch might prevent 1 (although the
> > property name and doc aren't very clear on that) but I don't see how it
> > would fix 2.
> >
> > thanks,
> > --Barry
> >
> >
> > Dave Cramer wrote:
> > > Yes, agreed
> > >
> > > Dave
> > > On Sun, 2003-08-17 at 09:57, Palle Girgensohn wrote:
> > >
> > >>It's been in use for the freebsd port for some months now, so I say
> > >>yes. ;-)
> > >>
> > >>/Palle
> > >>
> > >>lördagen den 16 augusti 2003 kl 22.54 skrev Bruce Momjian:
> > >>
> > >>
> > >>>Is this patch valid for inclusion in jdbc?
> > >>>
> > >>>-----------------------------------------------------------------------
>
> > >>>----
> > >>>
> > >>>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
> > >>>>
> > >>>
> > >>>--
> > >>> Bruce Momjian | http://candle.pha.pa.us
> > >>> pgman(at)candle(dot)pha(dot)pa(dot)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 2: you can get off all lists at once with the unregister command
> > >> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
> > >>
> >
> >
> >
> --
> Dave Cramer <Dave(at)micro-automation(dot)net>
>
>


From: Derek S <cube-soft(at)rogers(dot)com>
To: Dave(at)micro-automation(dot)net
Cc: Barry Lind <blind(at)xythos(dot)com>, Palle Girgensohn <girgen(at)pingpong(dot)net>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [BUGS] Bug #926: if old postgresql.jar in CLASSPATH,
Date: 2003-08-22 03:14:02
Message-ID: 3F458A7A.7060407@rogers.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-jdbc

The following will do what you're asking:

<available classname="org.postgresql.Driver"
property="old.driver.present" />
<fail message="Old driver on classpath" if="old.driver.present" />

Dave Cramer wrote:

>I think you are correct, this will not fix 2, is it possible to detect
>if a class is present in ant, and fail?
>
>dave
>On Thu, 2003-08-21 at 16:16, Barry Lind wrote:
>
>
>>Can someone explain to me why this change fixes the problem?
>>
>>I don't understand why including 'includeAntRuntime="no"' in the javac
>>tag will cause the compile to no longer pick up old versions of the
>>driver that may be around. There are two cases that I am familiar with
>>of this problem: 1) there is a old postgresql jdbc jar file in the
>>CLASSPATH environment, and 2) there is an old jar in the jre/lib/ext
>>directory. I can see where this patch might prevent 1 (although the
>>property name and doc aren't very clear on that) but I don't see how it
>>would fix 2.
>>
>>thanks,
>>--Barry
>>
>>
>>Dave Cramer wrote:
>>
>>
>>>Yes, agreed
>>>
>>>Dave
>>>On Sun, 2003-08-17 at 09:57, Palle Girgensohn wrote:
>>>
>>>
>>>
>>>>It's been in use for the freebsd port for some months now, so I say
>>>>yes. ;-)
>>>>
>>>>/Palle
>>>>
>>>>lördagen den 16 augusti 2003 kl 22.54 skrev Bruce Momjian:
>>>>
>>>>
>>>>
>>>>
>>>>>Is this patch valid for inclusion in jdbc?
>>>>>
>>>>>-----------------------------------------------------------------------
>>>>>----
>>>>>
>>>>>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
>>>>>>
>>>>>>
>>>>>>
>>>>>--
>>>>> Bruce Momjian | http://candle.pha.pa.us
>>>>> pgman(at)candle(dot)pha(dot)pa(dot)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 2: you can get off all lists at once with the unregister command
>>>> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>>>>
>>>>
>>>>
>>
>>
>>


From: Dave Cramer <Dave(at)micro-automation(dot)net>
To: Derek S <cube-soft(at)rogers(dot)com>
Cc: Barry Lind <blind(at)xythos(dot)com>, Palle Girgensohn <girgen(at)pingpong(dot)net>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [BUGS] Bug #926: if old postgresql.jar in CLASSPATH,
Date: 2003-08-22 15:30:54
Message-ID: 1061566253.2211.68.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-jdbc

So if we do a combination of the two, and change the error message to

<fail message="Old driver in jre/lib/ext" if ...

Dave
On Thu, 2003-08-21 at 23:14, Derek S wrote:
> The following will do what you're asking:
>
> <available classname="org.postgresql.Driver"
> property="old.driver.present" />
> <fail message="Old driver on classpath" if="old.driver.present" />
>
> Dave Cramer wrote:
>
> >I think you are correct, this will not fix 2, is it possible to detect
> >if a class is present in ant, and fail?
> >
> >dave
> >On Thu, 2003-08-21 at 16:16, Barry Lind wrote:
> >
> >
> >>Can someone explain to me why this change fixes the problem?
> >>
> >>I don't understand why including 'includeAntRuntime="no"' in the javac
> >>tag will cause the compile to no longer pick up old versions of the
> >>driver that may be around. There are two cases that I am familiar with
> >>of this problem: 1) there is a old postgresql jdbc jar file in the
> >>CLASSPATH environment, and 2) there is an old jar in the jre/lib/ext
> >>directory. I can see where this patch might prevent 1 (although the
> >>property name and doc aren't very clear on that) but I don't see how it
> >>would fix 2.
> >>
> >>thanks,
> >>--Barry
> >>
> >>
> >>Dave Cramer wrote:
> >>
> >>
> >>>Yes, agreed
> >>>
> >>>Dave
> >>>On Sun, 2003-08-17 at 09:57, Palle Girgensohn wrote:
> >>>
> >>>
> >>>
> >>>>It's been in use for the freebsd port for some months now, so I say
> >>>>yes. ;-)
> >>>>
> >>>>/Palle
> >>>>
> >>>>lördagen den 16 augusti 2003 kl 22.54 skrev Bruce Momjian:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Is this patch valid for inclusion in jdbc?
> >>>>>
> >>>>>-----------------------------------------------------------------------
> >>>>>----
> >>>>>
> >>>>>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
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>--
> >>>>> Bruce Momjian | http://candle.pha.pa.us
> >>>>> pgman(at)candle(dot)pha(dot)pa(dot)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 2: you can get off all lists at once with the unregister command
> >>>> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
> >>>>
> >>>>
> >>>>
> >>
> >>
> >>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
Dave Cramer <Dave(at)micro-automation(dot)net>


From: Palle Girgensohn <girgen(at)pingpong(dot)net>
To: Dave(at)micro-automation(dot)net, Derek S <cube-soft(at)rogers(dot)com>
Cc: Barry Lind <blind(at)xythos(dot)com>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [BUGS] Bug #926: if old postgresql.jar in CLASSPATH,
Date: 2003-08-22 15:39:40
Message-ID: 2490000.1061566780@rambutan.pingpong.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-jdbc

Sounds great to me

/Palle

--On fredag, augusti 22, 2003 11.30.54 -0400 Dave Cramer
<Dave(at)micro-automation(dot)net> wrote:

> So if we do a combination of the two, and change the error message to
>
> <fail message="Old driver in jre/lib/ext" if ...
>
> Dave
> On Thu, 2003-08-21 at 23:14, Derek S wrote:
>> The following will do what you're asking:
>>
>> <available classname="org.postgresql.Driver"
>> property="old.driver.present" />
>> <fail message="Old driver on classpath" if="old.driver.present"
>> />
>>
>> Dave Cramer wrote:
>>
>> > I think you are correct, this will not fix 2, is it possible to detect
>> > if a class is present in ant, and fail?
>> >
>> > dave
>> > On Thu, 2003-08-21 at 16:16, Barry Lind wrote:
>> >
>> >
>> >> Can someone explain to me why this change fixes the problem?
>> >>
>> >> I don't understand why including 'includeAntRuntime="no"' in the
>> >> javac tag will cause the compile to no longer pick up old versions
>> >> of the driver that may be around. There are two cases that I am
>> >> familiar with of this problem: 1) there is a old postgresql jdbc
>> >> jar file in the CLASSPATH environment, and 2) there is an old jar in
>> >> the jre/lib/ext directory. I can see where this patch might prevent
>> >> 1 (although the property name and doc aren't very clear on that) but
>> >> I don't see how it would fix 2.
>> >>
>> >> thanks,
>> >> --Barry
>> >>
>> >>
>> >> Dave Cramer wrote:
>> >>
>> >>
>> >>> Yes, agreed
>> >>>
>> >>> Dave
>> >>> On Sun, 2003-08-17 at 09:57, Palle Girgensohn wrote:
>> >>>
>> >>>
>> >>>
>> >>>> It's been in use for the freebsd port for some months now, so I say
>> >>>> yes. ;-)
>> >>>>
>> >>>> /Palle
>> >>>>
>> >>>> lördagen den 16 augusti 2003 kl 22.54 skrev Bruce Momjian:
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>> Is this patch valid for inclusion in jdbc?
>> >>>>>
>> >>>>> ------------------------------------------------------------------
>> >>>>> ----- ----
>> >>>>>
>> >>>>> 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
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>> --
>> >>>>> Bruce Momjian | http://candle.pha.pa.us
>> >>>>> pgman(at)candle(dot)pha(dot)pa(dot)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 2: you can get off all
>> >>>> lists at once with the unregister command (send "unregister
>> >>>> YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>> >>>>
>> >>>>
>> >>>>
>> >>
>> >>
>> >>
>>
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 4: Don't 'kill -9' the postmaster
>>
> --
> Dave Cramer <Dave(at)micro-automation(dot)net>
>


From: Barry Lind <blind(at)xythos(dot)com>
To: Derek S <cube-soft(at)rogers(dot)com>
Cc: Dave(at)micro-automation(dot)net, Palle Girgensohn <girgen(at)pingpong(dot)net>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [BUGS] Bug #926: if old postgresql.jar in CLASSPATH,
Date: 2003-08-24 22:14:39
Message-ID: 3F4938CF.8040709@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-jdbc

I have applied this change. (the improved error message suggested by
Derek). I am still looking at the original patch to see if there is a
better way to accomplish the same thing.

thanks,
--Barry

Derek S wrote:
> The following will do what you're asking:
>
> <available classname="org.postgresql.Driver"
> property="old.driver.present" />
> <fail message="Old driver on classpath" if="old.driver.present" />
>
> Dave Cramer wrote:
>
>> I think you are correct, this will not fix 2, is it possible to detect
>> if a class is present in ant, and fail?
>>
>> dave
>> On Thu, 2003-08-21 at 16:16, Barry Lind wrote:
>>
>>
>>> Can someone explain to me why this change fixes the problem?
>>>
>>> I don't understand why including 'includeAntRuntime="no"' in the
>>> javac tag will cause the compile to no longer pick up old versions of
>>> the driver that may be around. There are two cases that I am
>>> familiar with of this problem: 1) there is a old postgresql jdbc jar
>>> file in the CLASSPATH environment, and 2) there is an old jar in the
>>> jre/lib/ext directory. I can see where this patch might prevent 1
>>> (although the property name and doc aren't very clear on that) but I
>>> don't see how it would fix 2.
>>>
>>> thanks,
>>> --Barry
>>>
>>>
>>> Dave Cramer wrote:
>>>
>>>
>>>> Yes, agreed
>>>>
>>>> Dave
>>>> On Sun, 2003-08-17 at 09:57, Palle Girgensohn wrote:
>>>>
>>>>
>>>>
>>>>> It's been in use for the freebsd port for some months now, so I
>>>>> say yes. ;-)
>>>>>
>>>>> /Palle
>>>>>
>>>>> lördagen den 16 augusti 2003 kl 22.54 skrev Bruce Momjian:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Is this patch valid for inclusion in jdbc?
>>>>>>
>>>>>> -----------------------------------------------------------------------
>>>>>> ----
>>>>>>
>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Bruce Momjian | http://candle.pha.pa.us
>>>>>> pgman(at)candle(dot)pha(dot)pa(dot)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 2: you can get off all lists at once with the unregister command
>>>>> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>>>>>
>>>>>
>>>
>>>
>>>
>
>
>