equal
deleted
inserted
replaced
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 set PATH=%JAVA_HOME%\bin;%PATH% |
47 |
48 |
48 REM Needed by python logging |
49 REM Needed by python logging |
49 set PID=1 |
50 set PID=1 |
50 perl "%HELIUM_HOME%\tools\common\bin\getppid.pl" > %TEMP%\%USERNAME%pid.txt |
51 perl "%HELIUM_HOME%\tools\common\bin\getppid.pl" > %TEMP%\%USERNAME%pid.txt |
51 set /p PID=< %TEMP%\%USERNAME%pid.txt |
52 set /p PID=< %TEMP%\%USERNAME%pid.txt |
73 REM **Note: Comment below line if you want to skip the target times csv file generation |
74 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 set TARGET_TIMES_GENERATOR= -listener com.nokia.helium.core.ant.listener.TargetTimesLogGeneratorListener |
75 |
76 |
76 |
77 |
77 if not defined ANT_ARGS ( |
78 if not defined 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% |
79 set ANT_ARGS=-lib "%HELIUM_HOME%\external\antlibs2" -lib "%HELIUM_HOME%\extensions\nokia\external\antlibs" -logger com.nokia.ant.HeliumLogger %DIAMONDS_ANT_ARGS% %INTERNAL_DATA_ANT_ARGS% %SIGNALING_ANT_ARGS% %LOGGING_ANT_ARGS% %TARGET_TIMES_GENERATOR% |
79 ) |
80 ) |
80 |
81 |
81 REM Shall we impose the EPOCROOT? |
82 REM Shall we impose the EPOCROOT? |
82 if not defined EPOCROOT ( |
83 if not defined EPOCROOT ( |
83 set EPOCROOT=\ |
84 set EPOCROOT=\ |
91 set PATH=%PATH%;%HELIUM_HOME%\extensions\nokia\external\graphviz\bin |
92 set PATH=%PATH%;%HELIUM_HOME%\extensions\nokia\external\graphviz\bin |
92 |
93 |
93 for /f "tokens=2" %%a in ('"python -V 2>&1"') do (set pythonversion=%%a) |
94 for /f "tokens=2" %%a in ('"python -V 2>&1"') do (set pythonversion=%%a) |
94 for /f "tokens=1-2 delims=." %%a in ("%pythonversion%") do (set pythonversion=%%a.%%b) |
95 for /f "tokens=1-2 delims=." %%a in ("%pythonversion%") do (set pythonversion=%%a.%%b) |
95 |
96 |
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 |
97 set PYTHONPATH=%HELIUM_HOME%\external\python\lib\auto;%HELIUM_HOME%\external\python\lib\%pythonversion% |
|
98 set PYTHONPATH=%PYTHONPATH%;%HELIUM_HOME%\external\python\lib\common;%HELIUM_HOME%\tools\common\python\scripts |
97 set PYTHONPATH=%PYTHONPATH%;%HELIUM_HOME%\extensions\nokia\external\python\lib\%pythonversion% |
99 set PYTHONPATH=%PYTHONPATH%;%HELIUM_HOME%\extensions\nokia\external\python\lib\%pythonversion% |
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 |
100 set PYTHONPATH=%PYTHONPATH%;%HELIUM_HOME%\extensions\nokia\tools\common\python\lib;%SBS_HOME%\python |
99 set PERL5LIB=%HELIUM_HOME%\tools\common\packages |
101 set PERL5LIB=%HELIUM_HOME%\tools\common\packages |
100 set COPYCMD=/y |
102 set COPYCMD=/y |
101 |
103 |
102 REM Should be done that SYMSEE? |
104 REM Should be done that SYMSEE? |
103 set PATH=%PATH%;C:\APPS\ctc |
105 set PATH=%PATH%;C:\APPS\ctc |
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 ) |
114 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 |
115 call "C:\APPS\rvct%HLM_RVCT_VERSION%\rvctcmdprompt.bat" > nul |
114 ) |
116 ) |
115 TITLE Helium |
117 TITLE Helium |
116 |
118 |
117 if not exist "%HELIUM_HOME%\external\helium-antlib\bin\helium-checktools.jar" ( |
119 if not exist "%HELIUM_HOME%\external\antlibs2\helium-checktools-1.0.jar" ( |
118 echo *** Error: helium-checktools.jar not found |
120 echo *** Error: Please build helium from builder dir run "bld && bld get-deps -Dconfig=sf or nokia" |
119 goto errorstop |
121 goto errorstop |
120 ) |
122 ) |
121 |
123 |
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" |
124 call "%JAVA_HOME%\bin\java" -cp "%HELIUM_HOME%\external\antlibs2\helium-checktools-1.0.jar" com.nokia.helium.checktools.HeliumToolsCheckerMain -config "%HELIUM_HOME%\config\helium.basic.tools.config" |
123 REM if "%ERRORLEVEL%" neq "0" (goto errorstop) |
125 if "%ERRORLEVEL%" neq "0" (goto errorstop) |
124 |
126 |
125 REM Call the Helium generated batch file if it exists |
127 REM Call the Helium generated batch file if it exists |
126 REM This must match with the cache.dir property in helium.ant.xml |
128 REM This must match with the cache.dir property in helium.ant.xml |
127 if defined JOB_ID ( |
129 if defined JOB_ID ( |
128 set HELIUM_CACHE_DIR=%TEMP%\helium\%USERNAME%\%JOB_ID% |
130 set HELIUM_CACHE_DIR=%TEMP%\helium\%USERNAME%\%JOB_ID% |
132 md %HELIUM_CACHE_DIR% |
134 md %HELIUM_CACHE_DIR% |
133 ) |
135 ) |
134 |
136 |
135 REM pass cache dir to a property for log4j log file |
137 REM pass cache dir to a property for log4j log file |
136 if defined ANT_OPTS ( |
138 if defined ANT_OPTS ( |
137 set ANT_OPTS=%ANT_OPTS% -Dlog4j.cache.dir=%HELIUM_CACHE_DIR% -Dpython.path=%PYTHONPATH%;%HELIUM_HOME%\external\python\lib\2.5\jython-2.5-py2.5.egg |
139 set ANT_OPTS=%ANT_OPTS% -Dlog4j.cache.dir=%HELIUM_CACHE_DIR% |
|
140 call %HELIUM_HOME%\external\python\configure_jython.bat |
138 ) |
141 ) |
139 |
|
140 call "%HELIUM_HOME%\precompile_py.bat" > %HELIUM_CACHE_DIR%\precompile_output.txt |
|
141 |
142 |
142 call ant -Dhelium.dir="%HELIUM_HOME%" -Dcache.dir="%HELIUM_CACHE_DIR%" %* |
143 call ant -Dhelium.dir="%HELIUM_HOME%" -Dcache.dir="%HELIUM_CACHE_DIR%" %* |
143 |
144 |
144 endlocal |
145 endlocal |
145 goto :eof |
146 goto :eof |