david_williams | c2f2980 | 2007-01-13 07:13:16 +0000 | [diff] [blame] | 1 | #!/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 |
|
| 8 | if [ -n $BUILD_INITIALIZED ]
|
| 9 | then
|
| 10 | source commonVariations.shsource
|
| 11 | source ${BUILD_HOME}/releng.control/commonComputedVariables.shsource
|
| 12 | fi
|
| 13 |
|
| 14 | # For most ant tasks, we want Java 4 to be default,
|
| 15 | # so if not desired (such as for WTP 2.0 unit tests),
|
| 16 | # then we have to spec Java 5 right there where we run
|
| 17 | # the tests.
|
| 18 | export JAVA_HOME=${JAVA_4_HOME}
|
| 19 |
|
| 20 |
|
| 21 | ANT_CMD=${ANT_HOME}/bin/ant
|
| 22 |
|
| 23 | exec "$ANT_CMD" "$@"
|
| 24 |
|