_client-script.bat revision 1878
2N/A
2N/A@echo off
2N/Arem CDDL HEADER START
2N/Arem
2N/Arem The contents of this file are subject to the terms of the
2N/Arem Common Development and Distribution License, Version 1.0 only
2N/Arem (the "License"). You may not use this file except in compliance
2N/Arem with the License.
2N/Arem
2N/Arem You can obtain a copy of the license at
2N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE
2N/Arem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
2N/Arem See the License for the specific language governing permissions
2N/Arem and limitations under the License.
2N/Arem
2N/Arem When distributing Covered Code, include this CDDL HEADER in each
2N/Arem file and include the License file at
2N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
2N/Arem add the following below this CDDL HEADER, with the fields enclosed
2N/Arem by brackets "[]" replaced with your own identifying information:
2N/Arem Portions Copyright [yyyy] [name of copyright owner]
2N/Arem
2N/Arem CDDL HEADER END
rem
rem
rem Portions Copyright 2006-2007 Sun Microsystems, Inc.
rem This script is used to invoke various client-side processes. It should not
rem be invoked directly by end users.
setlocal
set DIR_HOME=%~dP0..
set INSTANCE_ROOT=%DIR_HOME%
if "%OPENDS_INVOKE_CLASS%" == "" goto noInvokeClass
goto checkJavaBin
:noInvokeClass
echo Error: OPENDS_INVOKE_CLASS environment variable is not set.
pause
goto end
:checkJavaBin
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN=%JAVA_HOME%\bin\java.exe
goto setClassPath
:noJavaHome
if not exist "%DIR_HOME%\lib\set-java-home.bat" goto noSetJavaHome
call "%DIR_HOME%\lib\set-java-home.bat"
set JAVA_BIN=%JAVA_HOME%\bin\java.exe
goto setClassPath
:noSetJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo Please set it to a valid Java 5 (or later) installation.
pause
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\lib\setcp.bat" %%x
set PATH=%SystemRoot%
"%JAVA_BIN%" %JAVA_ARGS% %SCRIPT_NAME_ARG% %OPENDS_INVOKE_CLASS% %*
:end