build revision 3827
0N/A#!/bin/sh
0N/A
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License, Version 1.0 only
0N/A# (the "License"). You may not use this file except in compliance
0N/A# with the License.
0N/A#
0N/A# You can obtain a copy of the license at
0N/A# trunk/opends/resource/legal-notices/OpenDS.LICENSE
0N/A# or https://OpenDS.dev.java.net/OpenDS.LICENSE.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at
0N/A# trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
0N/A# add the following below this CDDL HEADER, with the fields enclosed
0N/A# information:
0N/A# Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A#
0N/A# Copyright 2007-2008 Sun Microsystems, Inc.
0N/A
0N/A
0N/A# Change to the location of this build script.
0N/Acd `dirname $0`
0N/A
0N/A
0N/A# See if JAVA_HOME is set. If not, then see if there is a java executable in
0N/A# the path and try to figure it out.
0N/Aif test -z "${JAVA_HOME}"
0N/Athen
0N/A JAVA_HOME=`java -cp ../../resource FindJavaHome`
0N/A if test -z "${JAVA_HOME}"
0N/A then
0N/A echo "Please set JAVA_HOME to the root of a Java 5.0 installation."
0N/A exit 1
0N/A else
0N/A export JAVA_HOME
0N/A fi
0N/Afi
0N/A
0N/AOPENDS_LIB=`cd ../../lib;pwd`
0N/AANT_HOME=`cd ../..;pwd`/ext/ant
0N/Aexport ANT_HOME
0N/A# Execute the ant script and pass it any additional command-line arguments.
0N/A$ANT_HOME/bin/ant -lib $OPENDS_LIB/mail.jar:$OPENDS_LIB/activation.jar -f shared/ant/staf-installer.xml ${*}
0N/A