#!/bin/bash #ABT_HOME may be set in .bash_profile, to become centric to this when Release Planner dies ABT_HOME=/home/buildadm/buildtool ABT_WORK=/abtscratch/abt`hostname` GBE_ABT=1 GBE_LOG=/net/auperaarc01/export/devl/abtlog GBE_UNC=http://auperaarc01/devl/abtlog GBE_RM_USERNAME=build_user GBE_RM_PASSWORD=frog123 JAR=$ABT_HOME/abtdD.jar export ABT_HOME GBE_ABT GBE_LOG GBE_UNC # do not export ABT_WORK JAR if [ "x$GBE_RM_LOCATION" = "x" ] ; then echo Error: Program abtlaunch echo Error: EnvVar GBE_RM_LOCATION not set echo Error: This is set within /etc/profile exit 1 fi if [ "x$JAVA_HOME_1_6" = "x" ] ; then echo Error: Program abtlaunch echo Error: EnvVar JAVA_HOME_1_6 not set echo Error: This is set within /etc/profile exit 1 fi if [ ! -x $JAVA_HOME_1_6/bin/java ] ; then echo Error: Program abtlaunch echo Error: The java program does not exist echo Error: Location: $JAVA_HOME_1_6/bin/java exit 1 fi if [ ! -f $JAR ] ; then echo Error: Program abtlaunch echo Error: Required Jar does not exist exit 1 fi if [ ! -d $ABT_WORK ] ; then echo Error: Program abtlaunch echo Error: The ABT work directory does not exist echo Error: Dir: $ABT_WORK exit 1 fi PATH=$ABT_HOME:$PATH cd $ABT_WORK rm -f *.log rm -f *.xml $JAVA_HOME_1_6/bin/java -jar $JAR