Blame | Last modification | View Log | RSS feed
@echo offsetlocalREM Used to setup the buildtoolREM ABT_HOME - Where the ABT config files are to be forndREM - Where the ABT fixed JARs are to be foundREM ABT_JARS - Where the buildtool distribution is to be foundREM - JAR file will be copied from hereREM ABT_WORK - Working directory for the buildtoolREM - The CWD of the buildtool executionREMREM Used by the buildtoolREM GBE_ABT - Indicates the JATS that it is running an an ABT environmentREM GBE_LOG - Path to the builtool logging directoryREM GBE_UNC - Web server path for error logsREM GBE_RM_USERNAME - Release Manager credentialsREM GBE_RM_PASSWORD - Allowing write access to Release ManagerREM GBE_DPKG_SSH_PROPERTIES - path to ssh properties file holding ssh credentialsREMREM InternalREM JAR - Path to the buildtool jarREMset ABT_HOME=D:\work\buildtoolset ABT_JARS=V:\dpkg_archive\buildtool\latest\etcset ABT_WORK=F:\abtset GBE_ABT=1set GBE_LOG=V:\abtlogset GBE_UNC=http://auperaarc01/devl/abtlogset GBE_RM_USERNAME=build_userset GBE_RM_PASSWORD=frog123set GBE_DPKG_SSH_PROPERTIES=%GBE_DPKG%\.dpkg_archive\fragments.propertiesset JAR=%ABT_HOME%\abtdD.jarif "%GBE_RM_LOCATION%" == "" (echo Error: Program abtlaunch.batecho Error: EnvVar GBE_RM_LOCATION not setecho Error: Run in a jats shell eg jats eprog abtlaunchexit /B 1)if "%JAVA_HOME_1_6%" == "" (echo Error: Program abtlaunch.batecho Error: EnvVar JAVA_HOME_1_6 not setecho Error: Run in a jats shell eg jats eprog abtlaunchexit /B 1)if not exist "%JAVA_HOME_1_6%\bin\java.exe" (echo Error: Program abtlaunch.batecho Error: The java program does not existecho Error: Location: "%JAVA_HOME_1_6%\bin\java"exit /B 1)if not exist "%ABT_JARS%" (echo Error: Program abtlaunch.batecho Error: %ABT_JARS% does not existexit /B 1)if not exist "%ABT_HOME%" (echo Error: Program abtlaunch.batecho Error: %ABT_HOME% does not existexit /B 1)if not exist "%ABT_WORK%" (echo Error: Program abtlaunch.batecho Error: The ABT work directory does not existecho Error: Dir: %ABT_WORK%exit /B 1)REMREM Copy in the latest JARSREMecho Copy in JAR filescopy %ABT_JARS%\*.jar %ABT_HOME%if ERRORLEVEL 1 (echo Error: Program abtlaunch.batecho Error: Error occured copying latest builtool executablesexit /B 1)if not exist "%JAR%" (echo Error: Program abtlaunch.batecho Error: Required Jar does not exist: %JAR%exit /B 1)set PATH=%ABT_HOME%;%PATH%rem change drive and foldercd /D %ABT_WORK%echo %DATE% %TIME% AbtLaunch. Start jar"%JAVA_HOME_1_6%\bin\java" -jar %JAR%echo %DATE% %TIME% AbtLaunch. End jarendlocal