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