You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2018/07/05 12:09:54 UTC

svn commit: r1835131 - /tomcat/trunk/bin/makebase.bat

Author: markt
Date: Thu Jul  5 12:09:53 2018
New Revision: 1835131

URL: http://svn.apache.org/viewvc?rev=1835131&view=rev
Log:
Get batch file working when creating an instance with a space in the name.
The "s used on the command line are included in the value so remove them from the script else sequences of "" cause all sorts of bugs.

Modified:
    tomcat/trunk/bin/makebase.bat

Modified: tomcat/trunk/bin/makebase.bat
URL: http://svn.apache.org/viewvc/tomcat/trunk/bin/makebase.bat?rev=1835131&r1=1835130&r2=1835131&view=diff
==============================================================================
--- tomcat/trunk/bin/makebase.bat (original)
+++ tomcat/trunk/bin/makebase.bat Thu Jul  5 12:09:53 2018
@@ -56,7 +56,7 @@ if exist %BASE_TGT% (
   echo Target directory exists
 
     rem exit if target directory is not empty
-    for /F %%i in ('dir /b "%BASE_TGT%\*.*"') do (
+    for /F %%i in ('dir /b %BASE_TGT%\*.*') do (
         echo Target directory is not empty
         goto :EOF
     )
@@ -67,7 +67,7 @@ if exist %BASE_TGT% (
 
 rem create empty directories
 for %%d in (bin, lib, logs, temp, webapps, work) do (
-    mkdir "%BASE_TGT%\%%d"
+    mkdir %BASE_TGT%\%%d
 )
 
 rem copy conf directory



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