build revision d81978a0815d5b8a75633c35e3e1f8708d36f017
4d237bbe075b1d2c19428cd954d721d65b31f67cwrowe#!/bin/sh
df46ff21c57d00f6addccaaf9b1484f2b56b8577pquerna
7f4ac5a4cd99a9cae866b5908e358bd932736307chrisd# CDDL HEADER START
832853bb93c1831daf24e4727c5ca0e1b1786e83lars#
832853bb93c1831daf24e4727c5ca0e1b1786e83lars# The contents of this file are subject to the terms of the
832853bb93c1831daf24e4727c5ca0e1b1786e83lars# Common Development and Distribution License, Version 1.0 only
d2696ac6757b3d8bdaa27634a141ac8c8a045e08fielding# (the "License"). You may not use this file except in compliance
d2696ac6757b3d8bdaa27634a141ac8c8a045e08fielding# with the License.
d2696ac6757b3d8bdaa27634a141ac8c8a045e08fielding#
d2696ac6757b3d8bdaa27634a141ac8c8a045e08fielding# You can obtain a copy of the license at
1782dcd420de504978945e6b812523eeae6d56a2lars# trunk/opends/resource/legal-notices/OpenDS.LICENSE
1782dcd420de504978945e6b812523eeae6d56a2lars# or https://OpenDS.dev.java.net/OpenDS.LICENSE.
d2696ac6757b3d8bdaa27634a141ac8c8a045e08fielding# See the License for the specific language governing permissions
1782dcd420de504978945e6b812523eeae6d56a2lars# and limitations under the License.
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem#
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# When distributing Covered Code, include this CDDL HEADER in each
59dc8d935dbf862712683bbc9e267bd08ced0b14fielding# file and include the License file at
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# add the following below this CDDL HEADER, with the fields enclosed
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# information:
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# Portions Copyright [yyyy] [name of copyright owner]
cf8d02ea0c91653917b044529f3133c5a1bb9200fielding#
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# CDDL HEADER END
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem#
17ac330ebaa71b24cb77580411a231ee45996e03pquerna#
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# Copyright 2008 Sun Microsystems, Inc.
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
9f38f3ec3e8087985d108a24ae796962fef83644takashi
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# Change to the location of this build script.
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemcd `dirname $0`
d4ee4552489641d35d1195bbbd6021351c4b79aarjung
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
9e152751ed380f87c5ecae4fb0221c956e5fbd24rjung# See if JAVA_HOME is set. If not, then see if there is a java executable in
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# the path and try to figure it out.
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemif test -z "${JAVA_HOME}"
abb99af8aa7da2cb4c324133a4e10bd7a50f875erpluemthen
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem JAVA_HOME=`java -cp ../../resource FindJavaHome`
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem if test -z "${JAVA_HOME}"
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem then
382d14411b582d97075a836190d74c778977505fcovener echo "Please set JAVA_HOME to the root of a Java 5.0 installation."
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem exit 1
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem else
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem export JAVA_HOME
06e6657fd0f376a16db696876f9bff5927cc3cb0trawick fi
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemfi
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
0e9dae659943679108357054e9aa7657cdc52dc4minfrinOPENDS_LIB=`cd ../../lib;pwd`
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemANT_HOME=`cd ../..;pwd`/ext/ant
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemexport ANT_HOME
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# Execute the ant script and pass it any additional command-line arguments.
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem$ANT_HOME/bin/ant -lib $OPENDS_LIB/mail.jar:$OPENDS_LIB/activation.jar -f staf-installer.xml ${*}
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem