Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ant.sh 847 B
#!/bin/sh

# remember to leave no slashes on commonVariations in source command,
# so that users path is used to find it (first). But, path on
# commonComputedVariables means we expect to execute only our
# version

if [ -n $BUILD_INITIALIZED ]
then
   pushd .
   cd ${RELENG_CONTROL}
   source commonVariations.shsource
   source ${RELENG_CONTROL}/commonComputedVariables.shsource
   popd
fi

a# For most ant tasks, we want Java 4 to be default, 
# so if not desired (such as for WTP 2.0 unit tests), 
# then we have to spec Java 5 right there where we run 
# the tests.
# Note: this must be Java 4, for now, for "customizeAccessRules" 
# to work. I'll recompile it for Java 5 eventually, but it causes 
# a problem, and a problem only on PPC machine/VM. 
export JAVA_HOME=${JAVA_4_HOME}


ANT_CMD=${ANT_HOME}/bin/ant

exec "$ANT_CMD" "$@"