blob: 221a05edceeb51ac4ad90904c419997a8c959b28 [file] [log] [blame]
david_williams72f42342009-12-30 08:53:09 +00001#!/bin/sh
2
3# 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
6# version
7
8if [ -z $BUILD_INITIALIZED ]
9then
10 # if releng_control not set, we assume we are already in releng_control directory
11 if [ -z $RELENG_CONTROL ]
12 then
13 RELENG_CONROL=`pwd`
14 fi
15 pushd .
16 cd ${RELENG_CONTROL}
17 source commonVariations.shsource
18 source ${RELENG_CONTROL}/commonComputedVariables.shsource
19 popd
20fi
21
22# 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
25# the tests.
26# 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}
30
31
32ANT_CMD=${ANT_HOME}/bin/ant
33
34exec "$ANT_CMD" -v -f transformReportsToHTML.xml
35
36