blob: 550c5ae5962520a94d0db8aa6323b681324a03e3 [file] [log] [blame]
#!/bin/sh
# remember to leave no slashes on filename in source command,
# so that users path is used to find it (first)
if [ -n $BUILD_INITIALIZED ]
then
source commonVariations.sh
fi
export LD_LIBRARY_PATH=/opt/gnome/lib:/opt/gnome/lib64
# for now, swithed to use Java 5 for EMF pre-req EE,
# but long term, each test should run according to
# what it needs.
export JAVA_HOME=${JAVA_5_HOME}
# OS specific support.
sunjvm=false;
ibmjvm=false;
javaversion="`uname -a`"
case "$javaversion" in
*i686*) sunjvm=true;;
*ppc*) ibmjvm=true;;
esac
buildPaths="-DJ2SE-1.4=${bootclasspath} -DJ2SE-1.5=${bootclasspath_15}"
ANT_OPTS="-Xms128m -Xmx768m $buildPaths"
if $sunjvm ; then
ANT_OPTS="-Xms128m -Xmx768m -XX:MaxPermSize=128M -XX:+UseParallelGC $buildPaths"
fi
ANT_CMD=${ANT_HOME}/bin/ant
export ANT_OPTS
exec "$ANT_CMD" "$@"