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