_client-script.bat revision ba27d9bd65220ff9477313392f7d778a6b9a509b
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilson
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilson@echo off
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem CDDL HEADER START
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem The contents of this file are subject to the terms of the
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem Common Development and Distribution License, Version 1.0 only
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem (the "License"). You may not use this file except in compliance
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem with the License.
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem You can obtain a copy of the license at
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem trunk/opends/resource/legal-notices/OpenDS.LICENSE
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem See the License for the specific language governing permissions
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem and limitations under the License.
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem When distributing Covered Code, include this CDDL HEADER in each
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem file and include the License file at
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem add the following below this CDDL HEADER, with the fields enclosed
f71f7a61dec7c9089378d14493ad564a1dedf0b5neil_a_wilsonrem by brackets "[]" replaced with your own identifying information:
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem Portions Copyright [yyyy] [name of copyright owner]
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem CDDL HEADER END
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem
62ecec3a82a8b838ee76c1f6610902d8fd7015cbmatthew_swiftrem Copyright 2006-2009 Sun Microsystems, Inc.
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilson
797b7557ad71a61ffb72a68f4457a3d999e7e252jvergararem This script is used to invoke various client-side processes. It should not
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonrem be invoked directly by end users.
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilson
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonsetlocal
2f0f7926326cc76419b074fd91a589cb68980ffbduganfor %%i in (%~sf0) do set DIR_HOME=%%~dPsi..
014019918f7e3844f558f6159b8d41517254edc2lutoffset INSTALL_ROOT=%DIR_HOME%
014019918f7e3844f558f6159b8d41517254edc2lutoff
014019918f7e3844f558f6159b8d41517254edc2lutoffset INSTANCE_DIR=
014019918f7e3844f558f6159b8d41517254edc2lutofffor /f "delims=" %%a in (%INSTALL_ROOT%\instance.loc) do (
014019918f7e3844f558f6159b8d41517254edc2lutoff set INSTANCE_DIR=%%a
014019918f7e3844f558f6159b8d41517254edc2lutoff)
014019918f7e3844f558f6159b8d41517254edc2lutoffset CUR_DIR=%~dp0
37a25ab1d035846566ce9dfa221601de894a2c28lutoffcd /d %INSTALL_ROOT%
37a25ab1d035846566ce9dfa221601de894a2c28lutoffcd /d %INSTANCE_DIR%
014019918f7e3844f558f6159b8d41517254edc2lutoffset INSTANCE_ROOT=%CD%
37a25ab1d035846566ce9dfa221601de894a2c28lutoffcd /d %CUR_DIR%
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilson
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonif "%OPENDS_INVOKE_CLASS%" == "" goto noInvokeClass
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaragoto launchCommand
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilson
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilson:noInvokeClass
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsonecho Error: OPENDS_INVOKE_CLASS environment variable is not set.
bdb635e49a2fb168c65e8adc2027cf11b7864c64jvergarapause
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilsongoto end
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilson
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara:launchCommand
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraset SCRIPT_UTIL_CMD=set-full-environment
ba27d9bd65220ff9477313392f7d778a6b9a509bludovicpcall "%INSTALL_ROOT%\lib\_script-util.bat" %*
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraif NOT %errorlevel% == 0 exit /B %errorlevel%
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilson
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara"%OPENDS_JAVA_BIN%" %OPENDS_JAVA_ARGS% %SCRIPT_NAME_ARG% %OPENDS_INVOKE_CLASS% %*
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilson
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilson:end
7fe7590e076de60f097cbe5280f63327cf6097e8neil_a_wilson