Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

What version of tomcat am I using?

Glanville, Jay

2004-05-06

Replies:

Is there a way to programmatically determine what version of tomcat is
installed on my system? The situation is this: I'm writing an upgrade
script for my application, and if the version of tomcat is 4.x, then I
need to shutdown, install tomcat 5, configure tomcat 5 and then startup
tomcat 5. If the version on the system is tomcat 5, then don't do
anything.

Normally, most applications have a "--version" command line parameter
(e.g.: java -version gives me text that matches the regex "1.4.2_02").
Is there a way that I can execute a command to tell me the tomcat
version? If not through the tomcat program, is there a version number
stored in a text / configuration file that I can grep? Failing that,
how can I tell (programmatically) what version of tomcat I have?

Thanks

JDG

--
Jay Glanville

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.