tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1834853 - /tomcat/trunk/bin/makebase.bat
Date Mon, 02 Jul 2018 15:24:23 GMT
Author: markt
Date: Mon Jul  2 15:24:23 2018
New Revision: 1834853

URL: http://svn.apache.org/viewvc?rev=1834853&view=rev
Log:
Replace '::' with 'rem' for consistency with other .bat files. Also, research suggests '::'
is not an official comment marker but a malformed label which causes the line to be ignored.
The end result is generally the same but there are some edge cases with '::'

Modified:
    tomcat/trunk/bin/makebase.bat

Modified: tomcat/trunk/bin/makebase.bat
URL: http://svn.apache.org/viewvc/tomcat/trunk/bin/makebase.bat?rev=1834853&r1=1834852&r2=1834853&view=diff
==============================================================================
--- tomcat/trunk/bin/makebase.bat (original)
+++ tomcat/trunk/bin/makebase.bat Mon Jul  2 15:24:23 2018
@@ -1,35 +1,35 @@
-:: Licensed to the Apache Software Foundation (ASF) under one or more
-:: contributor license agreements.  See the NOTICE file distributed with
-:: this work for additional information regarding copyright ownership.
-:: The ASF licenses this file to You under the Apache License, Version 2.0
-:: (the "License"); you may not use this file except in compliance with
-:: the License.  You may obtain a copy of the License at
-::
-::     http://www.apache.org/licenses/LICENSE-2.0
-::
-:: Unless required by applicable law or agreed to in writing, software
-:: distributed under the License is distributed on an "AS IS" BASIS,
-:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-:: See the License for the specific language governing permissions and
-:: limitations under the License.
-
-:: This script creates the directory structure required for running Tomcat
-:: in a separate directory by pointing %CATALINA_BASE% to it. It copies the
-:: conf directory from %CATALINA_HOME%, and creates empty directories for
-:: bin, lib, logs, temp, webapps, and work.
-::
-:: If the file %CATALINA_HOME%/bin/setenv.sh exists then it is copied to
-:: the target directory as well.
-::
-:: Usage: makebase <path-to-target-directory>
+rem Licensed to the Apache Software Foundation (ASF) under one or more
+rem contributor license agreements.  See the NOTICE file distributed with
+rem this work for additional information regarding copyright ownership.
+rem The ASF licenses this file to You under the Apache License, Version 2.0
+rem (the "License"); you may not use this file except in compliance with
+rem the License.  You may obtain a copy of the License at
+rem
+rem     http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing, software
+rem distributed under the License is distributed on an "AS IS" BASIS,
+rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+rem See the License for the specific language governing permissions and
+rem limitations under the License.
+
+rem This script creates the directory structure required for running Tomcat
+rem in a separate directory by pointing %CATALINA_BASE% to it. It copies the
+rem conf directory from %CATALINA_HOME%, and creates empty directories for
+rem bin, lib, logs, temp, webapps, and work.
+rem
+rem If the file %CATALINA_HOME%/bin/setenv.sh exists then it is copied to
+rem the target directory as well.
+rem
+rem Usage: makebase <path-to-target-directory>
 
 @echo off
 
-:: first arg is the target directory
+rem first arg is the target directory
 set BASE_TGT=%1
 
 if %BASE_TGT%.==. (
-    :: target directory not provided; exit
+    rem target directory not provided; exit
     echo "Usage: makebase <path-to-target-directory>"
     goto :EOF
 )
@@ -38,28 +38,28 @@ set CURR_DIR=%~dp0
 set HOME_DIR=%CURR_DIR%..\
 
 if exist %BASE_TGT% (
-  :: target directory exists
+  rem target directory exists
   echo "Target directory exists"
 
-    :: exit if target directory is not empty
+    rem exit if target directory is not empty
     for /F %%i in ('dir /b "%BASE_TGT%\*.*"') do (
         echo "Target directory is not empty"
         goto :EOF
     )
 ) else (
-    :: create the target directory
+    rem create the target directory
     mkdir %BASE_TGT%
 )
 
-:: create empty directories for bin, lib, logs, temp, webapps, and work
+rem create empty directories for bin, lib, logs, temp, webapps, and work
 for %%d in (bin, lib, logs, temp, webapps, work) do (
     mkdir "%BASE_TGT%\%%d"
 )
 
-:: copy conf directory
+rem copy conf directory
 robocopy %HOME_DIR%\conf %BASE_TGT%\conf > nul
 
-:: copy setenv.bat if exists
+rem copy setenv.bat if exists
 robocopy %HOME_DIR%\bin %BASE_TGT%\bin setenv.bat > nul
 
 echo "Created CATALINA_BASE directory at $BASE_TGT"



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


Mime
View raw message