hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: [HttpClient][PATCH] Version detection
Date Sun, 01 Jul 2007 11:57:37 GMT
On Sun, 2007-07-01 at 13:46 +0200, Ortwin Gl├╝ck wrote:
> 
> 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
> 

Odi

I certainly do not mind using a properties file. It could also include
SVN revision and some other useful bits. My only reservation is if we go
this route we may well also just read the default parameters out of a
properties file (something we decided to not do for HttpClient 3.x)

Oleg

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Mime
View raw message