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