Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/bin/bash# Used to setup the buildtool# ABT_HOME - Where the ABT config files are to be fornd# - Where the ABT fixed JARs are to be found# ABT_JARS - Where the buildtool distribution is to be found# - JAR file will be copied from here# ABT_WORK - Working directory for the buildtool# - The CWD of the buildtool execution## Used by the buildtool# GBE_ABT - Indicates the JATS that it is running an an ABT environment# GBE_LOG - Path to the builtool logging directory# GBE_UNC - Web server path for error logs# GBE_RM_USERNAME - Release Manager credentials# GBE_RM_PASSWORD - Allowing write access to Release Manager# GBE_DPKG_SSH_PROPERTIES - path to ssh properties file holding ssh credentials## Internal# JAR - Path to the buildtool jar#ABT_HOME=/work/buildtoolABT_JARS=$GBE_DPKG/buildtool/latest/etcABT_WORK=/work/abtGBE_ABT=1GBE_LOG=/net/auperaarc01/export/devl/abtlogGBE_UNC=http://auperaarc01/devl/abtlogGBE_RM_USERNAME=build_userGBE_RM_PASSWORD=frog123GBE_DPKG_SSH_PROPERTIES=$GBE_DPKG/.dpkg_archive/fragments.propertiesJAR=$ABT_HOME/abtdD.jarexport ABT_HOME GBE_ABT GBE_LOG GBE_UNC GBE_DPKG_SSH_PROPERTIES# do not export ABT_WORK JARif [ "x$GBE_RM_LOCATION" = "x" ] ; thenecho Error: Program abtlaunchecho Error: EnvVar GBE_RM_LOCATION not setecho Error: This is set within /etc/profileexit 1fiif [ "x$JAVA_HOME_1_6" = "x" ] ; thenecho Error: Program abtlaunchecho Error: EnvVar JAVA_HOME_1_6 not setecho Error: This is set within /etc/profileexit 1fiif [ ! -x $JAVA_HOME_1_6/bin/java ] ; thenecho Error: Program abtlaunchecho Error: The java program does not existecho Error: Location: $JAVA_HOME_1_6/bin/javaexit 1fiif [ ! -d $ABT_WORK ] ; thenecho Error: Program abtlaunchecho Error: The ABT work directory does not existecho Error: Dir: $ABT_WORKexit 1fi# Copy in the latest JARScp ${ABT_JARS}/*.jar $ABT_HOMEif [ $? -ne 0 ]; thenecho Error: Program abtlaunchecho Error: Error occured copying latest builtool executablesexit 1fiif [ ! -f $JAR ] ; thenecho Error: Program abtlaunchecho Error: Required Jar does not existexit 1fiPATH=$ABT_HOME:$PATHcd $ABT_WORK#rm -f *.logrm -f *.xml$JAVA_HOME_1_6/bin/java -jar $JAR