tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <tomcat-b...@cortexity.com>
Subject BugRat Report #697 has been filed.
Date Thu, 04 Jan 2001 19:52:50 GMT
Bug report #697 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com/BugRatViewer/ShowReport/697>

REPORT #697 Details.

Project: Tomcat
Category: Feature Requests
SubCategory: Enhancement
Class: suggest
State: received
Priority: medium
Severity: non-critical
Confidence: public
Environment: 
   Release: Tomcat 3.2
   JVM Release: NA
   Operating System: Windows
   OS Release: 2000
   Platform: Intel

Synopsis: 
If TOMCAT_HOME is already set by user, bin/tomcat.bat should behave more like bin/tomcat.sh

Description:
If the TOMCAT_HOME environment variable is already set by the user before tomcat.bat is run,
tomcat.bat should respect that decision and move forward w/o quitting, even if lib/servlet.jar
doesn't exist.

Now, why would you want this?  Namely to have the tomcat libs located in an entirely separate
directory structure from the content.  Unix allows this assuming you set your TOMCAT_HOME
and CLASSPATH before calling tomcat.sh.  Windows should behave the same.

Here is how I modified tomcat.bat:

Original line 43 onward:

if not "%TOMCAT_HOME%" == "" goto gotTomcatHome
set TOMCAT_HOME=.
:gotTomcatHome
if exist "%TOMCAT_HOME%\lib\servlet.jar" goto okTomcatHome
echo Unable to locate servlet.jar, check the value of TOMCAT_HOME.
goto cleanup
:okTomcatHome


My proposed changes:

if not "%TOMCAT_HOME%" == "" goto gotTomcatHome
set TOMCAT_HOME=.
:gotTomcatHome
if exist "%TOMCAT_HOME%\lib\servlet.jar" goto okTomcatHome

rem If TOMCAT_HOME does exist, assume that the user knows what they are doing.
rem Beware that if the user does not set the CLASSPATH themselves, that
rem Tomcat will most likely fail to start.

if not "%TOMCAT_HOME%" == "" goto okTomcatHome
echo Unable to locate servlet.jar, check the value of TOMCAT_HOME.
goto cleanup
:okTomcatHome



For more info, please contact Mark Manca at mmanca@adobe.com.


Mime
View raw message