_client-script.bat revision 2f0f7926326cc76419b074fd91a589cb68980ffb
c20e7e3e6b1dd174c025487ceef713f07d77ba4bneil_a_wilsonrem CDDL HEADER START
e4ff5e7757146c139160c3e78f4ac5ee1584dde5coulbeckrem The contents of this file are subject to the terms of the
e4ff5e7757146c139160c3e78f4ac5ee1584dde5coulbeckrem Common Development and Distribution License, Version 1.0 only
267e43ad6455f631dfdb9e552909a137b9e4f087bolirem (the "License"). You may not use this file except in compliance
267e43ad6455f631dfdb9e552909a137b9e4f087bolirem with the License.
78ebdb0fc9f2a940f8385300ee5b4952d225b899bolirem You can obtain a copy of the license at
a89f073e2246d8dc081ec584f19bbcd813b9a44cneil_a_wilsonrem trunk/opends/resource/legal-notices/OpenDS.LICENSE
a89f073e2246d8dc081ec584f19bbcd813b9a44cneil_a_wilsonrem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
a89f073e2246d8dc081ec584f19bbcd813b9a44cneil_a_wilsonrem See the License for the specific language governing permissions
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilsonrem and limitations under the License.
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swiftrem When distributing Covered Code, include this CDDL HEADER in each
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilsonrem file and include the License file at
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swiftrem trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swiftrem add the following below this CDDL HEADER, with the fields enclosed
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilsonrem by brackets "[]" replaced with your own identifying information:
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffrem Portions Copyright [yyyy] [name of copyright owner]
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffrem CDDL HEADER END
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilsonrem Portions Copyright 2006-2007 Sun Microsystems, Inc.
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swiftrem This script is used to invoke various client-side processes. It should not
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swiftrem be invoked directly by end users.
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilsonfor %%i in (%~sf0) do set DIR_HOME=%%~dPsi..
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilsonset INSTANCE_ROOT=%DIR_HOME%
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swiftif "%OPENDS_INVOKE_CLASS%" == "" goto noInvokeClass
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilsongoto checkJavaBin
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swift:noInvokeClass
267e43ad6455f631dfdb9e552909a137b9e4f087boliecho Error: OPENDS_INVOKE_CLASS environment variable is not set.
03839fc8bfcf7f63ca2b9d3a48faabf94642b00bdugan:checkJavaBin
03839fc8bfcf7f63ca2b9d3a48faabf94642b00bduganif "%JAVA_BIN%" == "" goto noJavaBin
03839fc8bfcf7f63ca2b9d3a48faabf94642b00bdugangoto setClassPath
267e43ad6455f631dfdb9e552909a137b9e4f087boliif "%JAVA_HOME%" == "" goto noJavaHome
78ebdb0fc9f2a940f8385300ee5b4952d225b899boliif not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
ae8010f9ddf526c96a9274296e01f6aa3f122d72neil_a_wilsonset JAVA_BIN=%JAVA_HOME%\bin\java.exe
3effb6e09816d45ff07f200fec2b6ecb9588fa7fneil_a_wilsongoto setClassPath
3effb6e09816d45ff07f200fec2b6ecb9588fa7fneil_a_wilsonif not exist "%DIR_HOME%\lib\set-java-home.bat" goto noSetJavaHome
3effb6e09816d45ff07f200fec2b6ecb9588fa7fneil_a_wilsoncall "%DIR_HOME%\lib\set-java-home.bat"
5068612b175360889317ffea5826e816c2abbe08neil_a_wilsonset JAVA_BIN=%JAVA_HOME%\bin\java.exe
5068612b175360889317ffea5826e816c2abbe08neil_a_wilsongoto setClassPath
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swift:noSetJavaHome
5068612b175360889317ffea5826e816c2abbe08neil_a_wilsonecho Error: JAVA_HOME environment variable is not set.
5068612b175360889317ffea5826e816c2abbe08neil_a_wilsonecho Please set it to a valid Java 5 (or later) installation.
af6117fa729925b9e6cccbda589fecbb83f2b70fneil_a_wilsonFOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\lib\setcp.bat" %%x
af6117fa729925b9e6cccbda589fecbb83f2b70fneil_a_wilsonset PATH=%SystemRoot%
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swift"%JAVA_BIN%" %JAVA_ARGS% %SCRIPT_NAME_ARG% %OPENDS_INVOKE_CLASS% %*