buildframework/helium/hlm.bat
changeset 217 0f5e3a7fb6af
parent 179 d8ac696cc51f
child 587 85df38eb4012
equal deleted inserted replaced
181:59bb7c4d6172 217:0f5e3a7fb6af
    42 if not defined JAVA_6_HOME (
    42 if not defined JAVA_6_HOME (
    43 set TESTED_JAVA=C:\Apps\j2sdk_1.6.0_02
    43 set TESTED_JAVA=C:\Apps\j2sdk_1.6.0_02
    44 ) ELSE  set TESTED_JAVA=%JAVA_6_HOME%
    44 ) ELSE  set TESTED_JAVA=%JAVA_6_HOME%
    45 if exist "%TESTED_JAVA%" (set JAVA_HOME=%TESTED_JAVA%)
    45 if exist "%TESTED_JAVA%" (set JAVA_HOME=%TESTED_JAVA%)
    46 if not exist "%JAVA_HOME%" ( echo *** Java cannot be found & goto :errorstop )
    46 if not exist "%JAVA_HOME%" ( echo *** Java cannot be found & goto :errorstop )
    47 REM set JEP_HOME=%HELIUM_HOME%\external\jep_1.6_2.5
       
    48 REM set PATH=%PATH%;%JEP_HOME%
       
    49 
    47 
    50 REM Needed by python logging
    48 REM Needed by python logging
    51 set PID=1
    49 set PID=1
    52 perl "%HELIUM_HOME%\tools\common\bin\getppid.pl" > %TEMP%\%USERNAME%pid.txt
    50 perl "%HELIUM_HOME%\tools\common\bin\getppid.pl" > %TEMP%\%USERNAME%pid.txt
    53 set /p PID=< %TEMP%\%USERNAME%pid.txt
    51 set /p PID=< %TEMP%\%USERNAME%pid.txt
    64 set LOGGING_ANT_ARGS= -listener com.nokia.helium.logger.ant.listener.StatusAndLogListener
    62 set LOGGING_ANT_ARGS= -listener com.nokia.helium.logger.ant.listener.StatusAndLogListener
    65 REM -listener com.nokia.helium.logger.ant.listener.StatusAndLogListener
    63 REM -listener com.nokia.helium.logger.ant.listener.StatusAndLogListener
    66 set DIAMONDS_ANT_ARGS= -listener com.nokia.helium.diamonds.ant.HeliumListener
    64 set DIAMONDS_ANT_ARGS= -listener com.nokia.helium.diamonds.ant.HeliumListener
    67 
    65 
    68 if not defined HLM_DISABLE_INTERNAL_DATA (
    66 if not defined HLM_DISABLE_INTERNAL_DATA (
    69 set INTERNAL_DATA_ANT_ARGS= -listener com.nokia.ant.listener.internaldata.Listener
    67 set INTERNAL_DATA_ANT_ARGS= -listener com.nokia.helium.internaldata.ant.listener.Listener
    70 echo Internal data listening enabled.
    68 echo Internal data listening enabled.
    71 )
    69 )
    72 
    70 
       
    71 
       
    72 REM Configure listener to generate target times csv file.
       
    73 REM **Note: Comment below line if you want to skip the target times csv file generation
       
    74 set TARGET_TIMES_GENERATOR= -listener com.nokia.helium.core.ant.listener.TargetTimesLogGeneratorListener
       
    75 
       
    76 
    73 if not defined ANT_ARGS (
    77 if not defined ANT_ARGS (
    74 set ANT_ARGS=-lib "%HELIUM_HOME%\extensions\nokia\external\antlibs" -lib "%HELIUM_HOME%\extensions\nokia\external\helium-nokia-antlib\bin" -lib "%HELIUM_HOME%\external\helium-antlib\bin" -lib "%HELIUM_HOME%\tools\common\java\lib" -lib "%HELIUM_HOME%\external\antlibs" -logger com.nokia.ant.HeliumLogger  %DIAMONDS_ANT_ARGS% %INTERNAL_DATA_ANT_ARGS% %SIGNALING_ANT_ARGS% %LOGGING_ANT_ARGS%
    78 set ANT_ARGS=-lib "%HELIUM_HOME%\extensions\nokia\external\antlibs" -lib "%HELIUM_HOME%\extensions\nokia\external\helium-nokia-antlib\bin" -lib "%HELIUM_HOME%\external\helium-antlib\bin" -lib "%HELIUM_HOME%\tools\common\java\lib" -lib "%HELIUM_HOME%\external\antlibs" -logger com.nokia.ant.HeliumLogger  %DIAMONDS_ANT_ARGS% %INTERNAL_DATA_ANT_ARGS% %SIGNALING_ANT_ARGS% %LOGGING_ANT_ARGS% %TARGET_TIMES_GENERATOR%
    75 )
    79 )
    76 
    80 
    77 REM Shall we impose the EPOCROOT?
    81 REM Shall we impose the EPOCROOT?
    78 if not defined EPOCROOT (
    82 if not defined EPOCROOT (
    79 set EPOCROOT=\
    83 set EPOCROOT=\
    83 set PATH=%PATH%;%EPOCROOT%epoc32\tools;%EPOCROOT%epoc32\gcc\bin;%EPOCROOT%epoc32\tools\build;%EPOCROOT%epoc32\rombuild
    87 set PATH=%PATH%;%EPOCROOT%epoc32\tools;%EPOCROOT%epoc32\gcc\bin;%EPOCROOT%epoc32\tools\build;%EPOCROOT%epoc32\rombuild
    84 
    88 
    85 set PATH=%PATH%;%HELIUM_HOME%\extensions\nokia\external\unxutils
    89 set PATH=%PATH%;%HELIUM_HOME%\extensions\nokia\external\unxutils
    86 set PATH=%PATH%;%HELIUM_HOME%\extensions\nokia\external\Subversion\bin
    90 set PATH=%PATH%;%HELIUM_HOME%\extensions\nokia\external\Subversion\bin
    87 set PATH=%PATH%;%HELIUM_HOME%\extensions\nokia\external\graphviz\bin
    91 set PATH=%PATH%;%HELIUM_HOME%\extensions\nokia\external\graphviz\bin
    88 set PATH=%PATH%;\tools
       
    89 set PATH=%PATH%;\tools\ncp_tools
       
    90 
    92 
    91 for /f "tokens=2" %%a in ('"python -V 2>&1"') do (set pythonversion=%%a)
    93 for /f "tokens=2" %%a in ('"python -V 2>&1"') do (set pythonversion=%%a)
    92 for /f "tokens=1-2 delims=." %%a in ("%pythonversion%") do (set pythonversion=%%a.%%b)
    94 for /f "tokens=1-2 delims=." %%a in ("%pythonversion%") do (set pythonversion=%%a.%%b)
    93 
    95 
    94 set PYTHONPATH=%PYTHONPATH%;%HELIUM_HOME%\external\python\lib\%pythonversion%;%HELIUM_HOME%\external\python\lib\common;%HELIUM_HOME%\tools\common\python\lib;%HELIUM_HOME%\tools\common\python\scripts
    96 set PYTHONPATH=%PYTHONPATH%;%HELIUM_HOME%\external\python\lib\%pythonversion%;%HELIUM_HOME%\external\python\lib\common;%HELIUM_HOME%\external\helium-antlib\python\pythoncore\lib;%HELIUM_HOME%\tools\common\python\scripts
    95 set PYTHONPATH=%PYTHONPATH%;%HELIUM_HOME%\extensions\nokia\external\python\lib\%pythonversion%
    97 set PYTHONPATH=%PYTHONPATH%;%HELIUM_HOME%\extensions\nokia\external\python\lib\%pythonversion%
    96 set PYTHONPATH=%PYTHONPATH%;%HELIUM_HOME%\extensions\nokia\tools\common\python\lib;%SBS_HOME%\python
    98 set PYTHONPATH=%PYTHONPATH%;%HELIUM_HOME%\extensions\nokia\tools\common\python\lib;%HELIUM_HOME%\extensions\nokia\external\helium-nokia-antlib\python;%HELIUM_HOME%\extensions\nokia\external\helium-nokia-antlib\python\pythonnokia\lib;%SBS_HOME%\python
    97 set PERL5LIB=%HELIUM_HOME%\tools\common\packages
    99 set PERL5LIB=%HELIUM_HOME%\tools\common\packages
    98 set COPYCMD=/y
   100 set COPYCMD=/y
    99 set spp_tools=\tools\
       
   100 set ppd_tools=\tools\
       
   101 
   101 
   102 REM Should be done that SYMSEE?
   102 REM Should be done that SYMSEE?
   103 set PATH=%PATH%;C:\APPS\ctc
   103 set PATH=%PATH%;C:\APPS\ctc
   104 
   104 
   105 REM Nokia specific
   105 REM Nokia specific
   112 if not exist "C:\APPS\rvct%HLM_RVCT_VERSION%\rvctcmdprompt.bat" ( echo *** "C:\APPS\rvct%HLM_RVCT_VERSION%\rvctcmdprompt.bat" cannot be found & goto :errorstop )
   112 if not exist "C:\APPS\rvct%HLM_RVCT_VERSION%\rvctcmdprompt.bat" ( echo *** "C:\APPS\rvct%HLM_RVCT_VERSION%\rvctcmdprompt.bat" cannot be found & goto :errorstop )
   113 call "C:\APPS\rvct%HLM_RVCT_VERSION%\rvctcmdprompt.bat" > nul
   113 call "C:\APPS\rvct%HLM_RVCT_VERSION%\rvctcmdprompt.bat" > nul
   114 )
   114 )
   115 TITLE Helium
   115 TITLE Helium
   116 
   116 
   117 call "%JAVA_HOME%\bin\java" -cp "%HELIUM_HOME%\tools\common\bin" CheckTools
   117 if not exist "%HELIUM_HOME%\external\helium-antlib\bin\helium-checktools.jar" (
       
   118 echo *** Error: helium-checktools.jar not found 
       
   119 goto errorstop
       
   120 )
       
   121 
       
   122 REM call java -cp "%HELIUM_HOME%\external\helium-antlib\bin\helium-checktools.jar" com.nokia.helium.checktools.HeliumToolsCheckerMain -config "%HELIUM_HOME%\config\helium.basic.tools.config"
       
   123 REM if "%ERRORLEVEL%" neq "0" (goto errorstop)
   118 
   124 
   119 REM Call the Helium generated batch file if it exists
   125 REM Call the Helium generated batch file if it exists
   120 REM This must match with the cache.dir property in helium.ant.xml
   126 REM This must match with the cache.dir property in helium.ant.xml
   121 if defined JOB_ID  (
   127 if defined JOB_ID  (
   122 	set HELIUM_CACHE_DIR=%TEMP%\helium\%USERNAME%\%JOB_ID%
   128 	set HELIUM_CACHE_DIR=%TEMP%\helium\%USERNAME%\%JOB_ID%
   136 call ant -Dhelium.dir="%HELIUM_HOME%" -Dcache.dir="%HELIUM_CACHE_DIR%" %*
   142 call ant -Dhelium.dir="%HELIUM_HOME%" -Dcache.dir="%HELIUM_CACHE_DIR%" %*
   137 
   143 
   138 endlocal
   144 endlocal
   139 goto :eof
   145 goto :eof
   140 
   146 
   141 
       
   142 :errorstop
   147 :errorstop
   143 @echo *** Build aborted with error
   148 @echo *** Build aborted with error
   144 exit /b 1
   149 exit /b 1
   145 
   150 
       
   151