source: nutchez-0.1/tomcat/bin/digest.bat @ 98

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

NutchEz - an easy way to nutch

File size: 2.1 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 Script to digest password using the algorithm specified
20rem
21rem $Id: digest.bat 562770 2007-08-04 22:13:58Z markt $
22rem ---------------------------------------------------------------------------
23
24rem Guess CATALINA_HOME if not defined
25if not "%CATALINA_HOME%" == "" goto gotHome
26set CATALINA_HOME=.
27if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome
28set CATALINA_HOME=..
29:gotHome
30if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome
31echo The CATALINA_HOME environment variable is not defined correctly
32echo This environment variable is needed to run this program
33goto end
34:okHome
35
36set EXECUTABLE=%CATALINA_HOME%\bin\tool-wrapper.bat
37
38rem Check that target executable exists
39if exist "%EXECUTABLE%" goto okExec
40echo Cannot find %EXECUTABLE%
41echo This file is needed to run this program
42goto end
43:okExec
44
45rem Get remaining unshifted command line arguments and save them in the
46set CMD_LINE_ARGS=
47:setArgs
48if ""%1""=="""" goto doneSetArgs
49set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
50shift
51goto setArgs
52:doneSetArgs
53
54call "%EXECUTABLE%" -server org.apache.catalina.realm.RealmBase %CMD_LINE_ARGS%
55
56:end
Note: See TracBrowser for help on using the repository browser.