提交 cbbd1311 authored 作者: Thomas Mueller Graf's avatar Thomas Mueller Graf

Introduce end-of-line normalization

上级 77ed0ca9
*.bat eol=crlf
*.sh eol=lf
@echo off @echo off
setlocal setlocal
pushd "%~dp0" pushd "%~dp0"
copy /y /b ..\bin\h2-*.jar ..\bin\h2.jar copy /y /b ..\bin\h2-*.jar ..\bin\h2.jar
fc /b ..\bin\h2-*.jar ..\bin\h2.jar fc /b ..\bin\h2-*.jar ..\bin\h2.jar
if not errorlevel 1 goto :start if not errorlevel 1 goto :start
echo Please ensure there is only one h2-*.jar file. echo Please ensure there is only one h2-*.jar file.
echo Process stopped echo Process stopped
pause pause
goto :end goto :end
:start :start
rem Copyright (c) 1999, 2006 Tanuki Software Inc. rem Copyright (c) 1999, 2006 Tanuki Software Inc.
rem rem
rem Java Service Wrapper general startup script rem Java Service Wrapper general startup script
rem rem
rem rem
rem Resolve the real path of the wrapper.exe rem Resolve the real path of the wrapper.exe
rem For non NT systems, the _REALPATH and _WRAPPER_CONF values rem For non NT systems, the _REALPATH and _WRAPPER_CONF values
rem can be hard-coded below and the following test removed. rem can be hard-coded below and the following test removed.
rem rem
if "%OS%"=="Windows_NT" goto nt if "%OS%"=="Windows_NT" goto nt
echo This script only works with NT-based versions of Windows. echo This script only works with NT-based versions of Windows.
goto :end goto :end
:nt :nt
rem rem
rem Find the application home. rem Find the application home.
rem rem
rem %~dp0 is location of current script under NT rem %~dp0 is location of current script under NT
set _REALPATH=%~dp0 set _REALPATH=%~dp0
rem Decide on the wrapper binary. rem Decide on the wrapper binary.
set _WRAPPER_BASE=wrapper set _WRAPPER_BASE=wrapper
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
if exist "%_WRAPPER_EXE%" goto conf if exist "%_WRAPPER_EXE%" goto conf
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
if exist "%_WRAPPER_EXE%" goto conf if exist "%_WRAPPER_EXE%" goto conf
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe
if exist "%_WRAPPER_EXE%" goto conf if exist "%_WRAPPER_EXE%" goto conf
echo Unable to locate a Wrapper executable using any of the following names: echo Unable to locate a Wrapper executable using any of the following names:
echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
echo %_REALPATH%%_WRAPPER_BASE%.exe echo %_REALPATH%%_WRAPPER_BASE%.exe
pause pause
goto :end goto :end
:conf :conf
rem rem
rem Find the wrapper.conf rem Find the wrapper.conf
rem rem
set _WRAPPER_CONF="%~f1" set _WRAPPER_CONF="%~f1"
if not %_WRAPPER_CONF%=="" goto startup if not %_WRAPPER_CONF%=="" goto startup
set _WRAPPER_CONF="%_REALPATH%wrapper.conf" set _WRAPPER_CONF="%_REALPATH%wrapper.conf"
:startup :startup
rem rem
rem Start the Wrapper rem Start the Wrapper
rem rem
"%_WRAPPER_EXE%" -c %_WRAPPER_CONF% "%_WRAPPER_EXE%" -c %_WRAPPER_CONF%
if not errorlevel 1 goto :end if not errorlevel 1 goto :end
pause pause
:end :end
popd popd
@echo off @echo off
setlocal setlocal
pushd "%~dp0" pushd "%~dp0"
copy /y /b ..\bin\h2-*.jar ..\bin\h2.jar copy /y /b ..\bin\h2-*.jar ..\bin\h2.jar
fc /b ..\bin\h2-*.jar ..\bin\h2.jar fc /b ..\bin\h2-*.jar ..\bin\h2.jar
if not errorlevel 1 goto :start if not errorlevel 1 goto :start
echo Please ensure there is only one h2-*.jar file. echo Please ensure there is only one h2-*.jar file.
echo Process stopped echo Process stopped
pause pause
goto :end goto :end
:start :start
rem Copyright (c) 1999, 2006 Tanuki Software Inc. rem Copyright (c) 1999, 2006 Tanuki Software Inc.
rem rem
rem Java Service Wrapper general NT service install script rem Java Service Wrapper general NT service install script
rem rem
if "%OS%"=="Windows_NT" goto nt if "%OS%"=="Windows_NT" goto nt
echo This script only works with NT-based versions of Windows. echo This script only works with NT-based versions of Windows.
goto :end goto :end
:nt :nt
rem rem
rem Find the application home. rem Find the application home.
rem rem
rem %~dp0 is location of current script under NT rem %~dp0 is location of current script under NT
set _REALPATH=%~dp0 set _REALPATH=%~dp0
rem Decide on the wrapper binary. rem Decide on the wrapper binary.
set _WRAPPER_BASE=wrapper set _WRAPPER_BASE=wrapper
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
if exist "%_WRAPPER_EXE%" goto conf if exist "%_WRAPPER_EXE%" goto conf
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
if exist "%_WRAPPER_EXE%" goto conf if exist "%_WRAPPER_EXE%" goto conf
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe
if exist "%_WRAPPER_EXE%" goto conf if exist "%_WRAPPER_EXE%" goto conf
echo Unable to locate a Wrapper executable using any of the following names: echo Unable to locate a Wrapper executable using any of the following names:
echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
echo %_REALPATH%%_WRAPPER_BASE%.exe echo %_REALPATH%%_WRAPPER_BASE%.exe
pause pause
goto :end goto :end
:conf :conf
rem rem
rem Find the wrapper.conf rem Find the wrapper.conf
rem rem
set _WRAPPER_CONF="%~f1" set _WRAPPER_CONF="%~f1"
if not %_WRAPPER_CONF%=="" goto startup if not %_WRAPPER_CONF%=="" goto startup
set _WRAPPER_CONF="%_REALPATH%wrapper.conf" set _WRAPPER_CONF="%_REALPATH%wrapper.conf"
:startup :startup
rem rem
rem Install the Wrapper as an NT service. rem Install the Wrapper as an NT service.
rem rem
"%_WRAPPER_EXE%" -i %_WRAPPER_CONF% "%_WRAPPER_EXE%" -i %_WRAPPER_CONF%
if not errorlevel 1 goto :end if not errorlevel 1 goto :end
pause pause
:end :end
popd popd
\ No newline at end of file
sc start "H2DatabaseService" sc start "H2DatabaseService"
if not errorlevel 1 goto :eof if not errorlevel 1 goto :eof
pause pause
\ No newline at end of file
start http://localhost:8082 start http://localhost:8082
@echo off @echo off
setlocal setlocal
pushd "%~dp0" pushd "%~dp0"
rem Copyright (c) 1999, 2006 Tanuki Software Inc. rem Copyright (c) 1999, 2006 Tanuki Software Inc.
rem rem
rem Java Service Wrapper general NT service uninstall script rem Java Service Wrapper general NT service uninstall script
rem rem
if "%OS%"=="Windows_NT" goto nt if "%OS%"=="Windows_NT" goto nt
echo This script only works with NT-based versions of Windows. echo This script only works with NT-based versions of Windows.
goto :end goto :end
:nt :nt
rem rem
rem Find the application home. rem Find the application home.
rem rem
rem %~dp0 is location of current script under NT rem %~dp0 is location of current script under NT
set _REALPATH=%~dp0 set _REALPATH=%~dp0
rem Decide on the wrapper binary. rem Decide on the wrapper binary.
set _WRAPPER_BASE=wrapper set _WRAPPER_BASE=wrapper
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
if exist "%_WRAPPER_EXE%" goto conf if exist "%_WRAPPER_EXE%" goto conf
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
if exist "%_WRAPPER_EXE%" goto conf if exist "%_WRAPPER_EXE%" goto conf
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe
if exist "%_WRAPPER_EXE%" goto conf if exist "%_WRAPPER_EXE%" goto conf
echo Unable to locate a Wrapper executable using any of the following names: echo Unable to locate a Wrapper executable using any of the following names:
echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
echo %_REALPATH%%_WRAPPER_BASE%.exe echo %_REALPATH%%_WRAPPER_BASE%.exe
pause pause
goto :end goto :end
:conf :conf
rem rem
rem Find the wrapper.conf rem Find the wrapper.conf
rem rem
set _WRAPPER_CONF="%~f1" set _WRAPPER_CONF="%~f1"
if not %_WRAPPER_CONF%=="" goto startup if not %_WRAPPER_CONF%=="" goto startup
set _WRAPPER_CONF="%_REALPATH%wrapper.conf" set _WRAPPER_CONF="%_REALPATH%wrapper.conf"
:startup :startup
rem rem
rem Uninstall the Wrapper as an NT service. rem Uninstall the Wrapper as an NT service.
rem rem
"%_WRAPPER_EXE%" -r %_WRAPPER_CONF% "%_WRAPPER_EXE%" -r %_WRAPPER_CONF%
if not errorlevel 1 goto :end if not errorlevel 1 goto :end
pause pause
:end :end
popd popd
@echo off @echo off
echo %time:~0,8% Start echo %time:~0,8% Start
setlocal setlocal
cd ../.. cd ../..
set today=%date:~6%%date:~3,2%%date:~0,2% set today=%date:~6%%date:~3,2%%date:~0,2%
rmdir /s /q ..\h2web-%today% 2>nul rmdir /s /q ..\h2web-%today% 2>nul
rmdir /s /q ..\h2web 2>nul rmdir /s /q ..\h2web 2>nul
mkdir ..\h2web mkdir ..\h2web
rmdir /s /q bin 2>nul rmdir /s /q bin 2>nul
rmdir /s /q temp 2>nul rmdir /s /q temp 2>nul
call java16 >nul 2>nul call java16 >nul 2>nul
call build -quiet compile call build -quiet compile
call build -quiet spellcheck javadocImpl jarClient call build -quiet spellcheck javadocImpl jarClient
call build -quiet clean compile installer mavenDeployCentral call build -quiet clean compile installer mavenDeployCentral
rem call build -quiet compile benchmark rem call build -quiet compile benchmark
rem == Copy the benchmark results and update the performance page and diagram rem == Copy the benchmark results and update the performance page and diagram
ren ..\h2web h2web-%today% ren ..\h2web h2web-%today%
echo %time:~0,8% Done echo %time:~0,8% Done
@java -cp "h2.jar;%H2DRIVERS%;%CLASSPATH%" org.h2.tools.Console %* @java -cp "h2.jar;%H2DRIVERS%;%CLASSPATH%" org.h2.tools.Console %*
@if errorlevel 1 pause @if errorlevel 1 pause
\ No newline at end of file
@start javaw -cp "h2.jar;%H2DRIVERS%;%CLASSPATH%" org.h2.tools.Console %* @start javaw -cp "h2.jar;%H2DRIVERS%;%CLASSPATH%" org.h2.tools.Console %*
@if errorlevel 1 pause @if errorlevel 1 pause
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论