1051N/Arem The contents of this file are subject to the terms of the
1051N/Arem Common Development and Distribution License, Version 1.0 only
1051N/Arem (the "License"). You may not use this file except in compliance
1051N/Arem You can obtain a copy of the license at
1051N/Arem See the License for the specific language governing permissions
1051N/Arem and limitations under the License.
1051N/Arem When distributing Covered Code, include this CDDL HEADER in each
1051N/Arem file and include the License file at
1051N/Arem add the following below this CDDL HEADER, with the fields enclosed
1051N/Arem by brackets "[]" replaced with your own identifying information:
1051N/Arem Portions Copyright [yyyy] [name of copyright owner]
1051N/Arem Portions Copyright 2006-2007 Sun Microsystems, Inc.
1920N/Afor %%i in (%~sf0) do set DIR_HOME=%%~dPsi.
1051N/Aset INSTANCE_ROOT=%DIR_HOME%
1051N/Aif "%JAVA_BIN%" == "" goto noJavaBin
1051N/Aif "%JAVA_HOME%" == "" goto noJavaHome
1051N/Aecho Error: JAVA_HOME environment variable is not set.
1186N/Aecho Please set it to a valid Java 5 (or later) installation.
1186N/Aecho ERROR: The detected Java version could not be used. Please set
1186N/Aecho JAVA_HOME to to a valid Java 5 (or later) installation.
1186N/Arem Test that the provided JDK is 1.5 compatible.
1186N/Aif not %errorlevel% == 0 goto noValidJavaHome
1401N/Aif EXIST "%INSTANCE_ROOT%\tmp\upgrade" rd "%INSTANCE_ROOT%\tmp\upgrade" /s /q
1247N/AFOR %%x in ("%INSTANCE_ROOT%\lib\*.jar") DO call "%INSTANCE_ROOT%\lib\
setcp.bat" %%x
1591N/Aset CLASSPATH=%DIR_HOME%\classes;%CLASSPATH%
2324N/Aif %errorlevel% == 99 goto upgrader
2324N/Aif %errorlevel% == 98 goto reverter
1777N/Aif %errorlevel% == 50 goto version
2324N/Aif %errorlevel% == 0 goto end
1247N/AFOR %%x in ("%INSTANCE_ROOT%\tmp\upgrade\lib\*.jar") DO call "%INSTANCE_ROOT%\lib\
setcp.bat" %%x
2324N/Aif EXIST "%INSTANCE_ROOT%\tmp\revert" rd "%INSTANCE_ROOT%\tmp\revert" /s /q
2503N/Axcopy "%INSTANCE_ROOT%\lib\*.*" "%INSTANCE_ROOT%\tmp\revert\lib\" /E /Q /Y
2324N/AFOR %%x in ("%INSTANCE_ROOT%\tmp\revert\lib\*.jar") DO call "%INSTANCE_ROOT%\lib\
setcp.bat" %%x
1777N/Arem version information was requested. Return code should be 0.