blob: e61e914e2c63b353763bc32c9567732c02d7c45f [file] [log] [blame]
david_williams51256372010-04-20 21:04:25 +00001#!/usr/bin/env bash
nickboldt03a6f082019-02-12 15:17:11 -05002#*******************************************************************************
3# Copyright (c) 2006, 2019 IBM Corporation and others.
4# This program and the accompanying materials
5# are made available under the terms of the Eclipse Public License 2.0
6# which accompanies this distribution, and is available at
7# https://www.eclipse.org/legal/epl-2.0/
8#
9# SPDX-License-Identifier: EPL-2.0
10#
11# Contributors:
12# IBM Corporation - initial API and implementation
13#*******************************************************************************
david_williams82439602008-01-02 19:28:16 +000014
david_williams53f9de12008-01-02 19:31:06 +000015# remember to leave no slashes on commonVariations in source command,
16# so that users path is used to find it (first). But, path on
17# commonComputedVariables means we expect to execute only our
david_williams82439602008-01-02 19:28:16 +000018# version
19
david_williams47177032008-01-20 05:23:30 +000020if [ -z $BUILD_INITIALIZED ]
david_williams82439602008-01-02 19:28:16 +000021then
david_williams47177032008-01-20 05:23:30 +000022# if releng_control not set, we assume we are already in releng_control directory
david_williamsc2f548c2008-07-21 04:06:47 +000023 if [ -z $RELENG_CONTROL ]
24 then
david_williams47177032008-01-20 05:23:30 +000025 RELENG_CONROL=`pwd`
david_williamsc2f548c2008-07-21 04:06:47 +000026 fi
david_williamsf88f05c2008-01-02 21:24:46 +000027 pushd .
28 cd ${RELENG_CONTROL}
david_williams39c5f652008-01-02 07:08:39 +000029 source commonVariations.shsource
30 source ${RELENG_CONTROL}/commonComputedVariables.shsource
david_williamsf88f05c2008-01-02 21:24:46 +000031 popd
david_williams82439602008-01-02 19:28:16 +000032fi
33
canderson06909d62012-08-02 19:05:10 +000034# For most ant tasks, we want Java 6
35export JAVA_HOME=${JAVA_6_HOME}
david_williams82439602008-01-02 19:28:16 +000036
david_williamsc2f548c2008-07-21 04:06:47 +000037ANT_CMD="${ANT_HOME}/bin/ant"
david_williams82439602008-01-02 19:28:16 +000038exec "$ANT_CMD" "$@"