Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
771 blopes 1
@echo off
2
rem Licensed to the Apache Software Foundation (ASF) under one or more
3
rem contributor license agreements.  See the NOTICE file distributed with
4
rem this work for additional information regarding copyright ownership.
5
rem The ASF licenses this file to You under the Apache License, Version 2.0
6
rem (the "License"); you may not use this file except in compliance with
7
rem the License.  You may obtain a copy of the License at
8
rem
9
rem     http://www.apache.org/licenses/LICENSE-2.0
10
rem
11
rem Unless required by applicable law or agreed to in writing, software
12
rem distributed under the License is distributed on an "AS IS" BASIS,
13
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
rem See the License for the specific language governing permissions and
15
rem limitations under the License.
16
 
17
rem ---------------------------------------------------------------------------
18
rem Configuration test script for the CATALINA Server
19
rem ---------------------------------------------------------------------------
20
 
21
setlocal
22
 
23
rem Guess CATALINA_HOME if not defined
24
set "CURRENT_DIR=%cd%"
25
if not "%CATALINA_HOME%" == "" goto gotHome
26
set "CATALINA_HOME=%CURRENT_DIR%"
27
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
28
cd ..
29
set "CATALINA_HOME=%cd%"
30
cd "%CURRENT_DIR%"
31
:gotHome
32
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
33
echo The CATALINA_HOME environment variable is not defined correctly
34
echo This environment variable is needed to run this program
35
goto end
36
:okHome
37
 
38
set "EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat"
39
 
40
rem Check that target executable exists
41
if exist "%EXECUTABLE%" goto okExec
42
echo Cannot find "%EXECUTABLE%"
43
echo This file is needed to run this program
44
goto end
45
:okExec
46
 
47
rem Get remaining unshifted command line arguments and save them in the
48
set CMD_LINE_ARGS=
49
:setArgs
50
if ""%1""=="""" goto doneSetArgs
51
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
52
shift
53
goto setArgs
54
:doneSetArgs
55
 
56
call "%EXECUTABLE%" configtest %CMD_LINE_ARGS%
57
 
58
:end