From: markt Date: Wed, 13 Jul 2011 15:20:43 +0000 (+0000) Subject: CATALINA_BASE is always set, so simplify X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f84b5552d370db515bdb2f22069905a4871783a8;p=tomcat7.0 CATALINA_BASE is always set, so simplify git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1146096 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/bin/catalina.bat b/bin/catalina.bat index 56d55103a..51068a64b 100755 --- a/bin/catalina.bat +++ b/bin/catalina.bat @@ -137,12 +137,12 @@ rem but allow them to be specified in setenv.bat, in rare case when it is needed set CLASSPATH= rem Get standard environment variables -if "%CATALINA_BASE%" == "" goto gotSetenvHome -if exist "%CATALINA_BASE%\bin\setenv.bat" call "%CATALINA_BASE%\bin\setenv.bat" -goto gotSetenvBase -:gotSetenvHome +if not exist "%CATALINA_BASE%\bin\setenv.bat" goto checkSetenvHome +call "%CATALINA_BASE%\bin\setenv.bat" +goto setenvDone +:checkSetenvHome if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat" -:gotSetenvBase +:setenvDone rem Get standard Java environment variables if exist "%CATALINA_HOME%\bin\setclasspath.bat" goto okSetclasspath