added a test for zone affinity get
[voldemort/jeffpc.git] / bin / run-class.bat
blobb0e3618df08557b3d17db61af71835abf52e8cf7
1 @echo off
3 REM
4 REM Copyright 2013 Carlos Tasada
5 REM
6 REM Licensed under the Apache License, Version 2.0 (the "License");
7 REM you may not use this file except in compliance with the License.
8 REM You may obtain a copy of the License at
9 REM
10 REM http://www.apache.org/licenses/LICENSE-2.0
11 REM
12 REM Unless required by applicable law or agreed to in writing, software
13 REM distributed under the License is distributed on an "AS IS" BASIS,
14 REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 REM See the License for the specific language governing permissions and
16 REM limitations under the License.
17 REM
18 REM ** This Windows BAT file is not tested with each Voldemort release. **
20 set argC=0
21 for %%a in (%*) do set /a argC+=1
22 if %argC% geq 1 goto :continue
23 echo %0 java-class-name [options]
24 goto :eof
25 :continue
27 SET BASE_DIR=%~dp0..
28 SET CLASSPATH=.
30 set VOLDEMORT_CONFIG_DIR=%1%/config
32 for %%j in ("%BASE_DIR%\dist\*.jar") do (call :append_classpath "%%j")
33 for %%j in ("%BASE_DIR%\lib\*.jar") do (call :append_classpath "%%j")
34 set CLASSPATH=%CLASSPATH%;"%BASE_DIR%\dist\resources"
35 goto :run
37 :append_classpath
38 set CLASSPATH=%CLASSPATH%;%1
39 goto :eof
41 :run
42 if "%VOLD_OPTS%" == "" set "VOLD_OPTS=-Xmx2G -server -Dcom.sun.management.jmxremote"
43 java -Dlog4j.configuration=%VOLDEMORT_CONFIG_DIR%\log4j.properties %VOLD_OPTS% -cp %CLASSPATH% %*
45 endlocal
46 :eof