Version information inside the driver's jar file

Поиск
Список
Период
Сортировка
Искать

Version information inside the driver's jar file

От:
Thomas Kellerer <spam_eater@gmx.net>
Дата:
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

Re: Version information inside the driver's jar file

От:
Kris Jurka <books@ejurka.com>
Дата:


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

Re: Version information inside the driver's jar file

От:
Thomas Kellerer <spam_eater@gmx.net>
Дата:
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
FAQ