_server-script.bat revision 7f22d858bbecbd1fbd35d538918624d31455506e
481N/A
481N/A@echo off
481N/Arem CDDL HEADER START
481N/Arem
481N/Arem The contents of this file are subject to the terms of the
481N/Arem Common Development and Distribution License, Version 1.0 only
481N/Arem (the "License"). You may not use this file except in compliance
481N/Arem with the License.
481N/Arem
481N/Arem You can obtain a copy of the license at
481N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE
481N/Arem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
481N/Arem See the License for the specific language governing permissions
481N/Arem and limitations under the License.
481N/Arem
481N/Arem When distributing Covered Code, include this CDDL HEADER in each
481N/Arem file and include the License file at
481N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
481N/Arem add the following below this CDDL HEADER, with the fields enclosed
873N/Arem by brackets "[]" replaced with your own identifying information:
481N/Arem Portions Copyright [yyyy] [name of copyright owner]
481N/Arem
481N/Arem CDDL HEADER END
481N/Arem
481N/Arem
5236N/Arem Copyright 2006-2010 Sun Microsystems, Inc.
5728N/Arem Portions Copyright 2011-2012 ForgeRock AS
481N/A
481N/Arem This script is used to invoke various server-side processes. It should not
481N/Arem be invoked directly by end users.
481N/A
481N/Asetlocal
1920N/Afor %%i in (%~sf0) do set DIR_HOME=%%~dPsi..
3824N/Aset INSTALL_ROOT=%DIR_HOME%
3824N/A
3824N/Aset INSTANCE_DIR=
3824N/Aif exist "%INSTALL_ROOT%\instance.loc" (
3824N/A set /p INSTANCE_DIR=<%INSTALL_ROOT%\instance.loc
3824N/A) else (
5728N/Aset INSTANCE_DIR=.
3824N/A)
3824N/Aset CUR_DIR=%CD%
3824N/Acd %INSTALL_ROOT%
3824N/Acd %INSTANCE_DIR%
481N/Aset INSTANCE_ROOT=%CD%
5636N/Acd %CUR_DIR%
2976N/A
481N/Aif "%OPENDJ_INVOKE_CLASS%" == "" goto noInvokeClass
481N/Agoto launchCommand
5636N/A
1304N/A:noInvokeClass
481N/Aecho Error: OPENDJ_INVOKE_CLASS environment variable is not set.
481N/Apause
2976N/Agoto end
2976N/A
5173N/A:launchCommand
2976N/Aset SCRIPT_UTIL_CMD=set-full-environment
2650N/Acall "%INSTALL_ROOT%\lib\_script-util.bat" %*
5636N/Aif NOT %errorlevel% == 0 exit /B %errorlevel%
481N/A
481N/A"%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" %*
481N/A
:end