blob: 3cdf07c799956cca2aa1988b50da15ac2a3605a3 [file] [log] [blame]
david_williams82439602008-01-02 19:28:16 +00001#!/bin/sh
2
david_williams53f9de12008-01-02 19:31:06 +00003# remember to leave no slashes on commonVariations in source command,
4# so that users path is used to find it (first). But, path on
5# commonComputedVariables means we expect to execute only our
david_williams82439602008-01-02 19:28:16 +00006# version
7
david_williams47177032008-01-20 05:23:30 +00008if [ -z $BUILD_INITIALIZED ]
david_williams82439602008-01-02 19:28:16 +00009then
david_williams47177032008-01-20 05:23:30 +000010# if releng_control not set, we assume we are already in releng_control directory
david_williamsc2f548c2008-07-21 04:06:47 +000011 if [ -z $RELENG_CONTROL ]
12 then
david_williams47177032008-01-20 05:23:30 +000013 RELENG_CONROL=`pwd`
david_williamsc2f548c2008-07-21 04:06:47 +000014 fi
david_williamsf88f05c2008-01-02 21:24:46 +000015 pushd .
16 cd ${RELENG_CONTROL}
david_williams39c5f652008-01-02 07:08:39 +000017 source commonVariations.shsource
18 source ${RELENG_CONTROL}/commonComputedVariables.shsource
david_williamsf88f05c2008-01-02 21:24:46 +000019 popd
david_williams82439602008-01-02 19:28:16 +000020fi
21
david_williamsc2f548c2008-07-21 04:06:47 +000022# For most ant tasks, we want Java 4 to be default,
23# so if not desired (such as for WTP 2.0 unit tests),
24# then we have to spec Java 5 right there where we run
david_williamsf88f05c2008-01-02 21:24:46 +000025# the tests.
david_williamsc2f548c2008-07-21 04:06:47 +000026# Note: this must be Java 4, for now, for "customizeAccessRules"
27# to work. I'll recompile it for Java 5 eventually, but it causes
28# a problem, and a problem only on PPC machine/VM.
29export JAVA_HOME=${JAVA_4_HOME}
david_williams82439602008-01-02 19:28:16 +000030
david_williamsc2f548c2008-07-21 04:06:47 +000031ANT_CMD="${ANT_HOME}/bin/ant"
david_williams82439602008-01-02 19:28:16 +000032exec "$ANT_CMD" "$@"