control-panel.bat revision 7f22d858bbecbd1fbd35d538918624d31455506e
2976N/A
2976N/A@echo off
2976N/Arem CDDL HEADER START
2976N/Arem
2976N/Arem The contents of this file are subject to the terms of the
2976N/Arem Common Development and Distribution License, Version 1.0 only
2976N/Arem (the "License"). You may not use this file except in compliance
2976N/Arem with the License.
2976N/Arem
2976N/Arem You can obtain a copy of the license at
2976N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE
2976N/Arem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
2976N/Arem See the License for the specific language governing permissions
2976N/Arem and limitations under the License.
2976N/Arem
2976N/Arem When distributing Covered Code, include this CDDL HEADER in each
2976N/Arem file and include the License file at
2976N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
2976N/Arem add the following below this CDDL HEADER, with the fields enclosed
2976N/Arem by brackets "[]" replaced with your own identifying information:
2976N/Arem Portions Copyright [yyyy] [name of copyright owner]
2976N/Arem
2976N/Arem CDDL HEADER END
2976N/Arem
2976N/Arem
5236N/Arem Copyright 2006-2009 Sun Microsystems, Inc.
6238N/Arem Portions Copyright 2011-2012 ForgeRock AS
2976N/A
2976N/Asetlocal
2976N/Afor %%i in (%~sf0) do set DIR_HOME=%%~dPsi..
2976N/Aset INSTALL_ROOT=%DIR_HOME%
2976N/A
5636N/Aset INSTANCE_DIR=
2976N/Aif exist "%INSTALL_ROOT%\instance.loc" (
5636N/A set /p INSTANCE_DIR=<%INSTALL_ROOT%\instance.loc
2976N/A) else (
2976N/Aset INSTANCE_DIR=.
2976N/A)
2976N/Aset CUR_DIR=%CD%
2976N/Acd /d %INSTALL_ROOT%
3824N/Acd /d %INSTANCE_DIR%
3824N/Aset INSTANCE_ROOT=%CD%
2976N/Acd /d %CUR_DIR%
2976N/A
3488N/A
2976N/Aset SCRIPT_NAME=control-panel
2976N/A
2976N/Arem Set environment variables
3824N/Aset SCRIPT_UTIL_CMD=set-full-environment
3824N/Acall "%INSTALL_ROOT%\lib\_script-util.bat" %*
3824N/Aif NOT %errorlevel% == 0 exit /B %errorlevel%
2976N/A
2976N/Aif "%~1" == "" goto callLaunch
2976N/Agoto callJava
2976N/A
2976N/A:callLaunch
2976N/Aif exist "%INSTALL_ROOT%\lib\set-java-args.bat" DO call "%INSTALL_ROOT%\lib\set-java-args.bat"
3262N/A"%INSTALL_ROOT%\lib\winlauncher.exe" launch "%OPENDJ_JAVA_BIN%" %OPENDJ_JAVA_ARGS% %SCRIPT_NAME_ARG% org.opends.guitools.controlpanel.ControlPanelLauncher
3262N/Agoto end
5636N/A
5636N/A:callJava
5636N/Aif exist "%INSTALL_ROOT%\lib\set-java-args.bat" DO call "%INSTALL_ROOT%\lib\set-java-args.bat"
3262N/A"%OPENDJ_JAVA_BIN%" %OPENDJ_JAVA_ARGS% %SCRIPT_NAME_ARG% org.opends.guitools.controlpanel.ControlPanelLauncher %*
2976N/A
2976N/Arem return part
2976N/Aif %errorlevel% == 50 goto version
3824N/Agoto end
2976N/A
2976N/A:version
2976N/Arem version information was requested. Return code should be 0.
2976N/Aexit /B 0
2976N/A
2976N/A:end
2976N/A