Author: kkolinko
Date: Thu May 31 13:59:13 2012
New Revision: 1344725

URL: http://svn.apache.org/viewvc?rev=1344725&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=53115
Allow "catalina.bat run" to work even if %TEMP% contains spaces.
Note that
- It affects "run" command only.
For all other commands that code is skipped, thanks to [if not ""%1"" == 
""run""] jump.
- Single doublequotes are already used in "%TEMP%\%~nx0.run". The %TEMP% value 
cannot be quoted.

Modified:
    tomcat/trunk/bin/catalina.bat

Modified: tomcat/trunk/bin/catalina.bat
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/bin/catalina.bat?rev=1344725&r1=1344724&r2=1344725&view=diff
==============================================================================
--- tomcat/trunk/bin/catalina.bat (original)
+++ tomcat/trunk/bin/catalina.bat Thu May 31 13:59:13 2012
@@ -98,7 +98,7 @@ rem ------------------------------------
 
 rem Suppress Terminate batch job on CTRL+C
 if not ""%1"" == ""run"" goto mainEntry
-if ""%TEMP%"" == """" goto mainEntry
+if "%TEMP%" == "" goto mainEntry
 if exist "%TEMP%\%~nx0.run" goto mainEntry
 echo Y>"%TEMP%\%~nx0.run"
 if not exist "%TEMP%\%~nx0.run" goto mainEntry



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to