funkman 2004/08/24 05:25:03 Modified: catalina/src/share/org/apache/catalina/util Tag: TOMCAT_5_0 ServerInfo.java Log: Backport support for version.sh and version.bat to 5.0 Revision Changes Path No revision No revision 1.2.2.1 +7 -4 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/util/ServerInfo.java Index: ServerInfo.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/util/ServerInfo.java,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -r1.2 -r1.2.2.1 --- ServerInfo.java 27 Feb 2004 14:58:50 -0000 1.2 +++ ServerInfo.java 24 Aug 2004 12:25:03 -0000 1.2.2.1 @@ -1,12 +1,12 @@ /* * Copyright 1999,2004 The Apache Software Foundation. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -71,5 +71,8 @@ } + public static void main(String args[]) { + System.out.println("Version: " + getServerInfo()); + } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]