tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Farbos <>
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 <> 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.

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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message