Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 56398 invoked from network); 1 Jul 2007 11:46:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jul 2007 11:46:53 -0000 Received: (qmail 3529 invoked by uid 500); 1 Jul 2007 11:46:56 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 3497 invoked by uid 500); 1 Jul 2007 11:46:56 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 3488 invoked by uid 99); 1 Jul 2007 11:46:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jul 2007 04:46:56 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of odi@odi.ch designates 62.65.128.36 as permitted sender) Received: from [62.65.128.36] (HELO smtp.2wire.ch) (62.65.128.36) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jul 2007 04:46:52 -0700 Received: from gollum.odi.ch (gw.ptr-80-238-234-33.customer.ch.netstream.com [80.238.234.33]) by smtp.2wire.ch (Postfix) with ESMTP id 4FC1DB0D9 for ; Sun, 1 Jul 2007 13:43:07 +0200 (CEST) Received: from [192.168.111.10] (mithril [192.168.111.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gollum.odi.ch (Postfix) with ESMTP id 1BD17139ECA for ; Sun, 1 Jul 2007 13:46:31 +0200 (CEST) Message-ID: <46879416.20909@odi.ch> Date: Sun, 01 Jul 2007 13:46:30 +0200 From: =?ISO-8859-1?Q?Ortwin_Gl=FCck?= User-Agent: Thunderbird 2.0.0.4 (X11/20070616) MIME-Version: 1.0 To: HttpComponents Project Subject: Re: [HttpClient][PATCH] Version detection References: <1183289425.1843.17.camel@okhost> In-Reply-To: <1183289425.1843.17.camel@okhost> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Oleg Kalnichevski wrote: > Roland et al > > There is my first stab at version detection based on build-time > properties. Maven will happily filter resource files and replace > property placeholders with their corresponding build-time values. I am > not sure the same can be done for source files. So, the downside of this > approach is that the resource file containing the version needs to be > loaded through a class loader. Oh well. I am not sure this will pass the > scrutiny of the Holy API Inquisition but I'll try ;-) > > Cheers > > Oleg I quite like the version file. Also the class naming is consistent with Version classes used by other projects. Maybe the version file could be a property file? I know Maven/Ant can easily update those. And it would give a little extra safety regarding encoding. Odi --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org