pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Version information inside the driver's jar file
Date: Tue, 08 Dec 2009 10:15:22 +0100
Message-ID: <hfl5f9$854$1@ger.gmane.org> (raw)
In-Reply-To: <alpine.BSO.2.00.0912080407320.29250@leary.csoft.net>
References: <hfl4cd$58q$1@ger.gmane.org>
	<alpine.BSO.2.00.0912080407320.29250@leary.csoft.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




view thread (3+ messages)

Message-ID: <hfl5f9$854$1@ger.gmane.org>
Permalink:  ../hfl5f9$854$1@ger.gmane.org/
Also on:    postgresql.org/message-id/hfl5f9$854$1@ger.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: Version information inside the driver's jar file
  In-Reply-To: <hfl5f9$854$1@ger.gmane.org>
  References: <hfl4cd$58q$1@ger.gmane.org> <alpine.BSO.2.00.0912080407320.29250@leary.csoft.net> <hfl5f9$854$1@ger.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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