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