upgrade revision 2976
1051N/A# The contents of this file are subject to the terms of the 1051N/A# Common Development and Distribution License, Version 1.0 only 1051N/A# (the "License"). You may not use this file except in compliance 1051N/A# You can obtain a copy of the license at 1051N/A# See the License for the specific language governing permissions 1051N/A# and limitations under the License. 1051N/A# When distributing Covered Code, include this CDDL HEADER in each 1051N/A# file and include the License file at 1051N/A# add the following below this CDDL HEADER, with the fields enclosed 1051N/A# by brackets "[]" replaced with your own identifying information: 1051N/A# Portions Copyright [yyyy] [name of copyright owner] 1051N/A# Portions Copyright 2006-2007 Sun Microsystems, Inc. 1051N/A# Capture the current working directory so that we can change to it later. 1051N/A# Then capture the location of this script and the Directory Server instance 1051N/A# root so that we can use them to create appropriate paths. 1051N/A# Configure the appropriate CLASSPATH to test. 2976N/A# Test the java installation 1345N/A# Launch the build extractor. 1345N/A# Configure the appropriate CLASSPATH. 1345N/A# BuildExtractor uses the existing install's 2324N/A# Run the build extractor first. An exit code of 99 from the extractor 2324N/A# means that this is indeed an upgrade (as opposed to a reversion) and 2324N/A# that the upgrade should continue. An exit code of 98 means that this 2324N/A# operation is a reversion. An exit code of 50 means that the usage 2324N/A# statement was printed and there is nothing else to do 1265N/A # Configure the appropriate CLASSPATH. 1345N/A # Unlike BuildExtractor, the Upgrader uses 1345N/A # the newly extracted build's jars. 1345N/A # Launch the upgrade process. 2324N/A # Copy jars to a temporary place from which to run the reverter 2324N/A # in order to avoid potential file lock issues. 2324N/A echo "ERROR: Failed to initialize reversion." 2324N/A # Launch the upgrade process. 1777N/A # Version info was on requested 2324N/A # Some unknown return code returned