setup revision b91860b6092997623ef4afe19c2abddbe27dc087
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# The contents of this file are subject to the terms
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# of the Common Development and Distribution License
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# (the License). You may not use this file except in
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# compliance with the License.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# You can obtain a copy of the License at
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# https://opensso.dev.java.net/public/CDDLv1.0.html or
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# See the License for the specific language governing
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# permission and limitations under the License.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# When distributing Covered Code, include this CDDL
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Header Notice in each file and include the License file
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# If applicable, add the following below the CDDL Header,
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# with the fields enclosed by brackets [] replaced by
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# your own identifying information:
6f09f0fef8e4582cfa771d87fe2a1f777bfb5cf0WENTAO YANG# "Portions Copyrighted [year] [name of copyright owner]"
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# $Id: setup,v 1.11 2009/01/28 05:34:46 ww203982 Exp $
06db247c678f0e3956535e8a6dec31d6c2108827raghuramif [ -z "${JAVA_HOME}" ]; then
06db247c678f0e3956535e8a6dec31d6c2108827raghuram echo "Please define JAVA_HOME environment variable before running this program"
06db247c678f0e3956535e8a6dec31d6c2108827raghuram echo "setup program will use the JVM defined in JAVA_HOME for all the CLI tools"
06db247c678f0e3956535e8a6dec31d6c2108827raghuram echo "The defined JAVA_HOME environment variable is not correct"
06db247c678f0e3956535e8a6dec31d6c2108827raghuram echo "setup program will use the JVM defined in JAVA_HOME for all the CLI tools"
06db247c678f0e3956535e8a6dec31d6c2108827raghuramif [ -z $AWK ]; then
06db247c678f0e3956535e8a6dec31d6c2108827raghuram echo "setup fails because awk is not found"
06db247c678f0e3956535e8a6dec31d6c2108827raghuramJAVA_VER=`${JAVA_HOME}/bin/java -version 2>&1 | $AWK -F'"' '{print $2}'`
06db247c678f0e3956535e8a6dec31d6c2108827raghuram echo "This program is designed to work with 1.4 or newer JRE."
06db247c678f0e3956535e8a6dec31d6c2108827raghuramCLASSPATH="lib/openam-distribution-amadmsetup-10.1.0-SNAPSHOT.jar"
06db247c678f0e3956535e8a6dec31d6c2108827raghuramCLASSPATH="${CLASSPATH}:lib/opendj-server-2.4.6-SNAPSHOT.jar"
678453a8ed49104d8adad58f3ba591bdc39883e8speerCLASSPATH="${CLASSPATH}:lib/openam-core-10.1.0-SNAPSHOT.jar"
cdfc78ad277d82b1080e7c86213063d1b73e7789raghuramCLASSPATH="${CLASSPATH}:lib/openam-shared-10.1.0-SNAPSHOT.jar"
7b1f684a14f99a2b9b1b2561f484ff648eff6d9bSriharsha BasavapatnaCLASSPATH="${CLASSPATH}:lib/openam-dtd-schema-10.1.0-SNAPSHOT.jar"
7b1f684a14f99a2b9b1b2561f484ff648eff6d9bSriharsha BasavapatnaCLASSPATH="${CLASSPATH}:lib/openam-rest-10.1.0-SNAPSHOT.jar"
06db247c678f0e3956535e8a6dec31d6c2108827raghuram${JAVA_HOME}/bin/java -D"load.config=yes" -D"help.print=${help_print}" \
06db247c678f0e3956535e8a6dec31d6c2108827raghuram -D"path.AMConfig=${path_AMConfig}" -D"path.debug=${path_debug}" \
06db247c678f0e3956535e8a6dec31d6c2108827raghuram -D"path.log=${path_log}" \