3852N/A@echo off
3852N/A
5923N/Aset ERROR_CODE=0
5923N/A
5923N/A:init
5923N/A@REM Decide how to startup depending on the version of windows
5923N/A
5923N/A@REM -- Win98ME
5923N/Aif NOT "%OS%"=="Windows_NT" goto Win9xArg
5923N/A
5923N/A@REM set local scope for the variables with windows NT shell
5923N/Aif "%OS%"=="Windows_NT" @setlocal
5923N/A
5923N/A@REM -- 4NT shell
5923N/Aif "%eval[2+2]" == "4" goto 4NTArgs
5923N/A
5923N/A@REM -- Regular WinNT shell
5923N/Aset CMD_LINE_ARGS=%*
5923N/Agoto WinNTGetScriptDir
5923N/A
5923N/A@REM The 4NT Shell from jp software
5923N/A:4NTArgs
5923N/Aset CMD_LINE_ARGS=%$
5923N/Agoto WinNTGetScriptDir
3852N/A
5923N/A:Win9xArg
5923N/A@REM Slurp the command line arguments. This loop allows for an unlimited number
5923N/A@REM of arguments (up to the command line limit, anyway).
5923N/Aset CMD_LINE_ARGS=
5923N/A:Win9xApp
5923N/Aif %1a==a goto Win9xGetScriptDir
5923N/Aset CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
5923N/Ashift
5923N/Agoto Win9xApp
5923N/A
5923N/A:Win9xGetScriptDir
5923N/Aset SAVEDIR=%CD%
5923N/A%0\
5923N/Acd %0\..\..
5923N/Aset BASEDIR=%CD%
5923N/Acd %SAVEDIR%
5923N/Aset SAVE_DIR=
5923N/Agoto repoSetup
5923N/A
5923N/A:WinNTGetScriptDir
5923N/Aset BASEDIR=%~dp0
5923N/AIF %BASEDIR:~-1%==\ SET BASEDIR=%BASEDIR:~0,-1%
5923N/Aset BASEDIR=%BASEDIR%\..
3852N/A
5923N/A:repoSetup
5923N/A
5923N/A
5923N/Aif "%JAVACMD%"=="" set JAVACMD=java
5923N/Aif not "%JAVA_HOME%"=="" set JAVACMD="%JAVA_HOME%\bin\%JAVACMD%"
5923N/A
5923N/Aif "%SVNKIT_LIB%"=="" set SVNKIT_LIB=%BASEDIR%\lib
5923N/A
5923N/Aset CLASSPATH=
5923N/Aset CLASSPATH=%CLASSPATH%;"%SVNKIT_LIB%\svnkit-1.7.5-v1.jar"
5923N/Aset CLASSPATH=%CLASSPATH%;"%SVNKIT_LIB%\sequence-library-1.0.2.jar"
5923N/Aset CLASSPATH=%CLASSPATH%;"%SVNKIT_LIB%\antlr-runtime-3.4.jar"
5923N/Aset CLASSPATH=%CLASSPATH%;"%SVNKIT_LIB%\sqljet-1.1.4.jar"
5923N/Aset CLASSPATH=%CLASSPATH%;"%SVNKIT_LIB%\jna-3.4.0.jar"
5923N/Aset CLASSPATH=%CLASSPATH%;"%SVNKIT_LIB%\trilead-ssh2-1.0.0-build215.jar"
5923N/Aset CLASSPATH=%CLASSPATH%;"%SVNKIT_LIB%\svnkit-cli-1.7.5-v1.jar"
5923N/Aset EXTRA_JVM_ARGUMENTS=-Djava.util.logging.config.file="%BASEDIR%\conf\logging.properties" -Dsun.io.useCanonCaches=false
5923N/Agoto endInit
5923N/A
5923N/A@REM Reaching here means variables are defined and arguments have been captured
5923N/A:endInit
3852N/A
5923N/A%JAVACMD% %JAVA_OPTS% %EXTRA_JVM_ARGUMENTS% -classpath %CLASSPATH% org.tmatesoft.svn.cli.SVNDumpFilter %CMD_LINE_ARGS%
5923N/Aif ERRORLEVEL 1 goto error
5923N/Agoto end
5923N/A
5923N/A:error
5923N/Aif "%OS%"=="Windows_NT" @endlocal
5923N/Aset ERROR_CODE=1
5923N/A
5923N/A:end
5923N/A@REM set local scope for the variables with windows NT shell
5923N/Aif "%OS%"=="Windows_NT" goto endNT
5923N/A
5923N/A@REM For old DOS remove the set variables from ENV - we assume they were not set
5923N/A@REM before we started - at least we don't leave any baggage around
5923N/Aset CMD_LINE_ARGS=
5923N/Agoto postExec
5923N/A
5923N/A:endNT
5923N/A@endlocal
5923N/A
5923N/A:postExec
5923N/A
5923N/Aif "%FORCE_EXIT_ON_ERROR%" == "on" (
5923N/A if %ERROR_CODE% NEQ 0 exit %ERROR_CODE%
5923N/A)
5923N/A
5923N/Aexit /B %ERROR_CODE%