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
875N/A# by brackets "[]" replaced with your own identifying information:
0N/A# Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A#
5059N/A# Copyright 2008-2010 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/A
5058N/A# Make sure that the JUnit JAR file is in the CLASSPATH so that ant will be
5058N/A# able to find it.
5058N/ACLASSPATH=`pwd`/ext/junit.jar
0N/Aexport CLASSPATH
0N/A
0N/A
0N/AANT_HOME=`pwd`/ext/ant
0N/Aexport ANT_HOME
0N/A# Execute the ant script and pass it any additional command-line arguments.
0N/Aext/ant/bin/ant --noconfig ${*}
0N/A