install-service.bat revision 4c8a0a5b93bca43d2d6912bb3954c54ccc1f8bb2
rem @echo off
set "EXECUTABLE=%cd%\launcher.bat"
rem Check that target executable exists
if exist "%EXECUTABLE%" goto execOK
echo Cannot find "%EXECUTABLE%"
echo This file is needed to run this program
goto end
:execOK
rem Get remaining unshifted command line arguments and save them in the
set CMD_LINE_ARGS=
:setArgs
if ""%1""=="""" goto doneSetArgs
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto setArgs
:doneSetArgs
rem Only set OPENIDM_OPTS if not already set
if not "%OPENIDM_OPTS%" == "" goto noOpenIDMOpts
set OPENIDM_OPTS=${openidm.options} -Dfile.encoding=UTF-8
:noOpenIDMOpts
rem set SERVER_START_PARAMS="-c;bin/launcher.json"
set CP=bin/launcher.jar;bin/felix.jar
set JAVA_OPTS_SERVICE=%OPENIDM_OPTS%-Djava.util.logging.config.file=conf\logging.properties;-Dlogback.configurationFile=conf\logging-config.xml;
rem Enable debugging uncomment the line below
set JAVA_OPTS_SERVICE=%JAVA_OPTS_SERVICE%-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005;
call "%EXECUTABLE%" /install %CMD_LINE_ARGS%
goto :EOF
:end
exit /b 1