david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
david_williams | 53f9de1 | 2008-01-02 19:31:06 +0000 | [diff] [blame] | 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 |
david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 6 | # version |
| 7 | |
david_williams | 53f9de1 | 2008-01-02 19:31:06 +0000 | [diff] [blame] | 8 | if [ -n $BUILD_INITIALIZED ] |
david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 9 | then |
david_williams | f88f05c | 2008-01-02 21:24:46 +0000 | [diff] [blame^] | 10 | pushd . |
| 11 | cd ${RELENG_CONTROL} |
david_williams | 39c5f65 | 2008-01-02 07:08:39 +0000 | [diff] [blame] | 12 | source commonVariations.shsource |
| 13 | source ${RELENG_CONTROL}/commonComputedVariables.shsource |
david_williams | f88f05c | 2008-01-02 21:24:46 +0000 | [diff] [blame^] | 14 | popd |
david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 15 | fi |
| 16 | |
david_williams | f88f05c | 2008-01-02 21:24:46 +0000 | [diff] [blame^] | 17 | a# For most ant tasks, we want Java 4 to be default,
|
| 18 | # so if not desired (such as for WTP 2.0 unit tests),
|
| 19 | # then we have to spec Java 5 right there where we run
|
| 20 | # the tests. |
| 21 | # Note: this must be Java 4, for now, for "customizeAccessRules" |
| 22 | # to work. I'll recompile it for Java 5 eventually, but it causes |
| 23 | # a problem, and a problem only on PPC machine/VM. |
| 24 | export JAVA_HOME=${JAVA_4_HOME}
|
| 25 |
|
david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 26 | |
| 27 | ANT_CMD=${ANT_HOME}/bin/ant |
| 28 | |
| 29 | exec "$ANT_CMD" "$@" |
| 30 | |