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