Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 1D986632C31 for ; Tue, 8 Dec 2009 05:15:57 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 41917-03 for ; Tue, 8 Dec 2009 09:15:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id A32E76327EE for ; Tue, 8 Dec 2009 05:15:49 -0400 (AST) Received: from list by lo.gmane.org with local (Exim 4.50) id 1NHwAa-0000XS-SR for pgsql-jdbc@postgresql.org; Tue, 08 Dec 2009 10:15:44 +0100 Received: from 217.110.94.67 ([217.110.94.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Dec 2009 10:15:44 +0100 Received: from spam_eater by 217.110.94.67 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Dec 2009 10:15:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Version information inside the driver's jar file Date: Tue, 08 Dec 2009 10:15:22 +0100 Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 217.110.94.67 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.957 tagged_above=-10 required=5 tests=BAYES_05=-1.11, RCVD_NUMERIC_HELO=2.067 X-Spam-Level: X-Archive-Number: 200912/7 X-Sequence-Number: 20088 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