blob: 24d7bb94133c9d5201d3b641d59c098c9d25849f [file] [log] [blame]
#!/bin/sh
PROJECT_HOME=`dirname "$0"`
echo "Project Home: ${PROJECT_HOME}"
LD_LIBRARY_PATH=/opt/gnome/lib:/opt/gnome/lib64
export LD_LIBRARY_PATH
BUILD_HOME=/shared/webtools
export BUILD_HOME
CCDIR=$BUILD_HOME/apps/cruisecontrol-bin-2.5
export CCDIR
JAVA_HOME=${BUILD_HOME}/apps/IBMJava2-ppc-142
export JAVA_HOME
JAVA5_HOME=$BUILD_HOME/apps/jdk1.5.0_09
export JAVA5_HOME
ANT_HOME=$BUILD_HOME/apps/apache-ant-1.6.5
export ANT_HOME
# OS specific support.
sunjvm=false;
ibmjvm=false;
javaversion="`uname -a`"
case "$javaversion" in
*i686*) sunjvm=true;;
*ppc*) ibmjvm=true;;
esac
#values of the bootclasspath attribute used in ant javac calls.
bootclasspath="$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/jre/lib/jsse.jar"
bootclasspath_15="$JAVA5_HOME/jre/lib/rt.jar"
export J2SE14="$bootclasspath"
export J2SE15="$bootclasspath_15"
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
DISPLAY=127.0.0.1:1.0
export DISPLAY
PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin
PATH=$PATH:$HOME/bin:$ANT_HOME/bin
PATH=$PATH:$JAVA_HOME/bin
export PATH
export JAVA_HIGH_ZIPFDS=500
export ANT_OPTS
exec "$ANT_CMD" "$@"