pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedVersion information inside the driver's jar file
3+ messages / 2 participants
[nested] [flat]
* Version information inside the driver's jar file
@ 2009-12-08 08:56 Thomas Kellerer <spam_eater@gmx.net>
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Kellerer @ 2009-12-08 08:56 UTC (permalink / raw)
To: pgsql-jdbc
Hi,
if the driver's jar file has been renamed, the only way to find out the driver's version is to actually make a connection using that driver.
I would like to suggest to add an entry to the manifest file that shows the driver's version so that it is easier to find that out (e.g. when a .jar file gets bundled within an application)
Something like:
Implementation-Title: PostgreSQL JDBC4 Driver
Implementation-URL: http://jdbc.postgresql.org
Implementation-Version: 8.4-701
What do you think of that?
Regards
Thomas
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Version information inside the driver's jar file
@ 2009-12-08 09:08 Kris Jurka <books@ejurka.com>
parent: Thomas Kellerer <spam_eater@gmx.net>
0 siblings, 1 reply; 3+ messages in thread
From: Kris Jurka @ 2009-12-08 09:08 UTC (permalink / raw)
To: Thomas Kellerer <spam_eater@gmx.net>; +Cc: pgsql-jdbc
On Tue, 8 Dec 2009, Thomas Kellerer wrote:
> if the driver's jar file has been renamed, the only way to find out the
> driver's version is to actually make a connection using that driver.
> I would like to suggest to add an entry to the manifest file that shows the
> driver's version so that it is easier to find that out (e.g. when a .jar file
> gets bundled within an application)
kjurka@brain:~/pg/jdbc$ java -classpath postgresql-8.4-701.jdbc3.jar
org.postgresql.util.PSQLDriverVersion
PostgreSQL 8.4 JDBC3 (build 701)
Found in:
jar:file:/home/kjurka/pg/jdbc/postgresql-8.4-701.jdbc3.jar!/org/postgresql/Driver.class
Kris Jurka
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Version information inside the driver's jar file
@ 2009-12-08 09:15 Thomas Kellerer <spam_eater@gmx.net>
parent: Kris Jurka <books@ejurka.com>
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Kellerer @ 2009-12-08 09:15 UTC (permalink / raw)
To: pgsql-jdbc
Kris Jurka, 08.12.2009 10:08:
>> if the driver's jar file has been renamed, the only way to find out
>> the driver's version is to actually make a connection using that
>> driver. I would like to suggest to add an entry to the manifest file
>> that shows the driver's version so that it is easier to find that out
>> (e.g. when a .jar file gets bundled within an application)
>
> kjurka@brain:~/pg/jdbc$ java -classpath postgresql-8.4-701.jdbc3.jar
> org.postgresql.util.PSQLDriverVersion
> PostgreSQL 8.4 JDBC3 (build 701)
> Found in:
> jar:file:/home/kjurka/pg/jdbc/postgresql-8.4-701.jdbc3.jar!/org/postgresql/Driver.class
Thanks I didn't know that one.
But I still think the manifest information would be nice ;)
Regards
Thomas
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2009-12-08 09:15 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-12-08 08:56 Version information inside the driver's jar file Thomas Kellerer <spam_eater@gmx.net>
2009-12-08 09:08 ` Kris Jurka <books@ejurka.com>
2009-12-08 09:15 ` Thomas Kellerer <spam_eater@gmx.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox