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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to