david_williams | 5125637 | 2010-04-20 21:04:25 +0000 | [diff] [blame] | 1 | #!/usr/bin/env bash |
nickboldt | 03a6f08 | 2019-02-12 15:17:11 -0500 | [diff] [blame] | 2 | #******************************************************************************* |
| 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_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 14 | |
david_williams | 53f9de1 | 2008-01-02 19:31:06 +0000 | [diff] [blame] | 15 | # 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_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 18 | # version |
| 19 | |
david_williams | 4717703 | 2008-01-20 05:23:30 +0000 | [diff] [blame] | 20 | if [ -z $BUILD_INITIALIZED ] |
david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 21 | then |
david_williams | 4717703 | 2008-01-20 05:23:30 +0000 | [diff] [blame] | 22 | # if releng_control not set, we assume we are already in releng_control directory |
david_williams | c2f548c | 2008-07-21 04:06:47 +0000 | [diff] [blame] | 23 | if [ -z $RELENG_CONTROL ] |
| 24 | then |
david_williams | 4717703 | 2008-01-20 05:23:30 +0000 | [diff] [blame] | 25 | RELENG_CONROL=`pwd` |
david_williams | c2f548c | 2008-07-21 04:06:47 +0000 | [diff] [blame] | 26 | fi |
david_williams | f88f05c | 2008-01-02 21:24:46 +0000 | [diff] [blame] | 27 | pushd . |
| 28 | cd ${RELENG_CONTROL} |
david_williams | 39c5f65 | 2008-01-02 07:08:39 +0000 | [diff] [blame] | 29 | source commonVariations.shsource |
| 30 | source ${RELENG_CONTROL}/commonComputedVariables.shsource |
david_williams | f88f05c | 2008-01-02 21:24:46 +0000 | [diff] [blame] | 31 | popd |
david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 32 | fi |
| 33 | |
canderson | 06909d6 | 2012-08-02 19:05:10 +0000 | [diff] [blame] | 34 | # For most ant tasks, we want Java 6 |
| 35 | export JAVA_HOME=${JAVA_6_HOME} |
david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 36 | |
david_williams | c2f548c | 2008-07-21 04:06:47 +0000 | [diff] [blame] | 37 | ANT_CMD="${ANT_HOME}/bin/ant" |
david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 38 | exec "$ANT_CMD" "$@" |