Explicitely return value 0 if we return without error
authorrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 13 Jul 2009 19:16:49 +0000 (19:16 +0000)
committerrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 13 Jul 2009 19:16:49 +0000 (19:16 +0000)
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

index 1e1a1e4..62404d9 100755 (executable)
@@ -87,3 +87,4 @@ goto end
 exit /b 1
 
 :end
+exit /b 0