source: nutchez-0.1/tomcat/bin/startup.bat @ 175

Last change on this file since 175 was 66, checked in by waue, 16 years ago

NutchEz - an easy way to nutch

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