build revision e75c2484bff064fbbf51e92aed4f37b08e6427b7
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# CDDL HEADER START
1124950b35ae05a12e804e670607fe5ba775cb4aTinderbox User# The contents of this file are subject to the terms of the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# Common Development and Distribution License, Version 1.0 only
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# (the "License"). You may not use this file except in compliance
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# with the License.
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# You can obtain a copy of the license at
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# trunk/opends/resource/legal-notices/OpenDS.LICENSE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# or https://OpenDS.dev.java.net/OpenDS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# add the following below this CDDL HEADER, with the fields enclosed
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# information:
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews# Portions Copyright [yyyy] [name of copyright owner]
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# CDDL HEADER END
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Copyright 2007-2008 Sun Microsystems, Inc.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Change to the location of this build script.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# See if JAVA_HOME is set. If not, then see if there is a java executable in
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# the path and try to figure it out.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinif test -z "${JAVA_HOME}"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein JAVA_HOME=`java -cp ../../resource FindJavaHome`
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein if test -z "${JAVA_HOME}"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein echo "Please set JAVA_HOME to the root of a Java 5.0 installation."
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Execute the ant script and pass it any additional command-line arguments.