From 40b0cedbe0ff52487bf0ac3ba5734fbd1ccb67e3 Mon Sep 17 00:00:00 2001 From: rjung Date: Mon, 13 Jul 2009 19:16:49 +0000 Subject: [PATCH] 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 --- bin/setclasspath.bat | 1 + 1 file changed, 1 insertion(+) 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 -- 2.11.0