Author: rjung Date: Mon Jul 13 19:16:49 2009 New Revision: 793669 URL: http://svn.apache.org/viewvc?rev=793669&view=rev Log: 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. Modified: tomcat/trunk/bin/setclasspath.bat Modified: tomcat/trunk/bin/setclasspath.bat URL: http://svn.apache.org/viewvc/tomcat/trunk/bin/setclasspath.bat?rev=793669&r1=793668&r2=793669&view=diff ============================================================================== --- tomcat/trunk/bin/setclasspath.bat (original) +++ tomcat/trunk/bin/setclasspath.bat Mon Jul 13 19:16:49 2009 @@ -87,3 +87,4 @@ exit /b 1 :end +exit /b 0 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org