2976N/Arem The contents of this file are subject to the terms of the
2976N/Arem Common Development and Distribution License, Version 1.0 only
2976N/Arem (the "License"). You may not use this file except in compliance
2976N/Arem You can obtain a copy of the license at
2976N/Arem See the License for the specific language governing permissions
2976N/Arem and limitations under the License.
2976N/Arem When distributing Covered Code, include this CDDL HEADER in each
2976N/Arem file and include the License file at
2976N/Arem add the following below this CDDL HEADER, with the fields enclosed
2976N/Arem by brackets "[]" replaced with your own identifying information:
2976N/Arem Portions Copyright [yyyy] [name of copyright owner]
2976N/Arem Portions Copyright 2006-2007 Sun Microsystems, Inc.
2976N/Aset INSTANCE_ROOT=%DIR_HOME%
2976N/Aif "%JAVA_BIN%" == "" goto noJavaBin
2976N/Aif "%*" == "" goto callWebStartUpgrade
2976N/Aif "%JAVA_HOME%" == "" goto noJavaHome
2976N/Aif "%*" == "" goto callWebStartUpgrade
2976N/Aif "%*" == "" goto callWebStartUpgrade
2976N/Aecho Error: JAVA_HOME environment variable is not set.
2976N/Aecho Please set it to a valid Java 5 (or later) installation.
2976N/Aecho ERROR: The detected Java version could not be used. Please set
2976N/Aecho JAVA_HOME to to a valid Java 5 (or later) installation.
2976N/Arem Test that the provided JDK is 1.5 compatible.
2976N/Aif not %errorlevel% == 0 goto noValidJavaHome
2976N/Aif "%*" == "" goto callWebStartUpgrade
2976N/Aif EXIST %INSTANCE_ROOT%\tmp\upgrade rd %INSTANCE_ROOT%\tmp\upgrade /s /q
2976N/AFOR %%x in ("%INSTANCE_ROOT%\lib\*.jar") DO call "%INSTANCE_ROOT%\lib\
setcp.bat" %%x
2976N/A"%JAVAWS_BIN%" "%OPENDS_UPGRADE_JNLP%"
2976N/Aif EXIST %INSTANCE_ROOT%\tmp\upgrade goto setClassPathToStageDir
2976N/AFOR %%x in ("%INSTANCE_ROOT%\tmp\upgrade\lib\*.jar") DO call "%INSTANCE_ROOT%\lib\
setcp.bat" %%x
2976N/Aif EXIST %INSTANCE_ROOT%\tmp\upgrade rd %INSTANCE_ROOT%\tmp\upgrade /s /q