tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Farbos <lionel.far...@free.fr>
Subject Re: Where to put version information in war file?
Date Thu, 12 May 2005 11:32:40 GMT
On Wed, 11 May 2005 15:03:37 -0400
Henri Dupre <henri.dupre@gmail.com> wrote:

> I was wondering what is the best place to put version information in a war file?
> I'd like to put a build version and date at built time to my
> application and have a way to retrieve them from the servlets.
> 
> I'm used to add the META-INF Implementation-version tag with jar files
> but with Tomcat war files it doesn't work. Are there other
> "standard" places where to put version information?
> 
> Henri.
> 
Hi,

I use this mecanism and it works.
I put version information in the META-INF/MANIFEST.MF of the war,
then thanks to getServletContext().getResource("/META-INF/MANIFEST.MF"), you can get this
file and parse it.

Regards.

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


Mime
View raw message