_server-script.bat revision 0f8553e2af5fc49a510ecfcfc93e66d06713f631
4632N/A
4632N/A@echo off
4632N/Arem CDDL HEADER START
4632N/Arem
4632N/Arem The contents of this file are subject to the terms of the
4632N/Arem Common Development and Distribution License, Version 1.0 only
4632N/Arem (the "License"). You may not use this file except in compliance
4632N/Arem with the License.
4632N/Arem
4632N/Arem You can obtain a copy of the license at
4632N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE
4632N/Arem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
4632N/Arem See the License for the specific language governing permissions
4632N/Arem and limitations under the License.
4632N/Arem
4632N/Arem When distributing Covered Code, include this CDDL HEADER in each
4632N/Arem file and include the License file at
4632N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
4632N/Arem add the following below this CDDL HEADER, with the fields enclosed
4632N/Arem by brackets "[]" replaced with your own identifying information:
4632N/Arem Portions Copyright [yyyy] [name of copyright owner]
4632N/Arem
4632N/Arem CDDL HEADER END
4632N/Arem
4632N/Arem
4632N/Arem Copyright 2006-2010 Sun Microsystems, Inc.
4632N/Arem Portions Copyright 2011 ForgeRock AS
4632N/A
4632N/Arem This script is used to invoke various server-side processes. It should not
4632N/Arem be invoked directly by end users.
4632N/A
4632N/Asetlocal
4632N/Afor %%i in (%~sf0) do set DIR_HOME=%%~dPsi..
4632N/Aset INSTALL_ROOT=%DIR_HOME%
4632N/A
4632N/Aset INSTANCE_DIR=
4632N/Afor /f "delims=" %%a in (%INSTALL_ROOT%\instance.loc) do (
4632N/A set INSTANCE_DIR=%%a
4632N/A)
4632N/Aset CUR_DIR=%~dp0
4632N/Acd %INSTALL_ROOT%
4632N/Acd %INSTANCE_DIR%
4632N/Aset INSTANCE_ROOT=%CD%
4632N/Acd %CUR_DIR%
4632N/A
4632N/Aif "%OPENDJ_INVOKE_CLASS%" == "" goto noInvokeClass
4632N/Agoto launchCommand
4632N/A
:noInvokeClass
echo Error: OPENDJ_INVOKE_CLASS environment variable is not set.
pause
goto end
:launchCommand
set SCRIPT_UTIL_CMD=set-full-environment
call "%INSTALL_ROOT%\lib\_script-util.bat" %*
if NOT %errorlevel% == 0 exit /B %errorlevel%
"%OPENDJ_JAVA_BIN%" %OPENDJ_JAVA_ARGS% %SCRIPT_ARGS% %SCRIPT_NAME_ARG% %OPENDJ_INVOKE_CLASS% --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%INSTANCE_ROOT%\config\config.ldif" %*
:end