From: rjung Date: Mon, 13 Jul 2009 19:16:49 +0000 (+0000) Subject: Explicitely return value 0 if we return without error X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=40b0cedbe0ff52487bf0ac3ba5734fbd1ccb67e3;p=tomcat7.0 Explicitely return value 0 if we return without error from setclasspath.bat. Otherwise errorlevel in catalina.bat is not reset. catalina.bat checks for non-zero errorlevel after the call to setclasspath.bat and then fails silently, because it assumes setclasspath.bat to log any error. If there is an error above the call to setclasspath.bat, catalina.bat fails without any message. Since there is only very basic logic above the call to setclasspath.bat, let us reset errorlevel to ignore errors. Example: any "set myvar=" for an undefined variable myvar sets errorlevel to 1, although it is a correct statement, setting the variable to an empty value. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@793669 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/bin/setclasspath.bat b/bin/setclasspath.bat index 1e1a1e466..62404d9b7 100755 --- a/bin/setclasspath.bat +++ b/bin/setclasspath.bat @@ -87,3 +87,4 @@ goto end exit /b 1 :end +exit /b 0