Skip site navigation (1) Skip section navigation (2)

Re: Version information inside the driver's jar file

From: Kris Jurka <books(at)ejurka(dot)com>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Version information inside the driver's jar file
Date: 2009-12-08 09:08:21
Message-ID: alpine.BSO.2.00.0912080407320.29250@leary.csoft.net (view raw or flat)
Thread:
Lists: 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(at)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

In response to

Responses

pgsql-jdbc by date

Next:From: Thomas KellererDate: 2009-12-08 09:15:22
Subject: Re: Version information inside the driver's jar file
Previous:From: Thomas KellererDate: 2009-12-08 08:56:45
Subject: Version information inside the driver's jar file

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group