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