Bug 242826 - www-servers/tomcat-6.0.18 reports wrong version number
Bug#: 242826 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: java@gentoo.org Reported By: gentoo-bugs.f@umsar.org
Component: Java
URL: 
Summary: www-servers/tomcat-6.0.18 reports wrong version number
Keywords:  
Status Whiteboard: 
Opened: 2008-10-19 21:39 0000
Description:   Opened: 2008-10-19 21:39 0000
At runtime, ServletContext.getServerInfo() returns "snapshot" instead of
"6.0.18" as a version number.

As far as i can tell, some $version and $version.number do need to be specified
at compile time to get the right numbers at runtime.

Naive patch will follow.

To see what is going on, see those files:
./apache-tomcat-6.0.18-src/java/org/apache/catalina/util/ServerInfo.java
./apache-tomcat-6.0.18-src/java/org/apache/catalina/util/ServerInfo.properties
./apache-tomcat-6.0.18-src/build.xml
./apache-tomcat-6.0.18-src/build.properties.default

------- Comment #1 From Yoann Pannier 2008-10-19 21:40:11 0000 -------
Created an attachment (id=169138) [details]
define $version and $version.number

------- Comment #2 From Miroslav Ć ulc 2008-10-22 00:08:32 0000 -------
Thank you for the bug report and the patch. Fixed in tomcat-6.0.18-r1.