common/build.xml
changeset 260 13596dc42a47
parent 258 4305132b8052
parent 236 83bd5e2c69a6
child 261 a0e85954c23c
child 320 2f097e4f5384
equal deleted inserted replaced
259:97419fef4b8f 260:13596dc42a47
    85 		<if><istrue value="${sf.spec.sourcesync.usecache}"/>
    85 		<if><istrue value="${sf.spec.sourcesync.usecache}"/>
    86 			<then>
    86 			<then>
    87 				<echo message="Generating Hg local cache..." />
    87 				<echo message="Generating Hg local cache..." />
    88 				<exec executable="perl" dir="${build.log.dir}" failonerror="true" output="${build.log.dir}/${build.id}_hgcache.log">
    88 				<exec executable="perl" dir="${build.log.dir}" failonerror="true" output="${build.log.dir}/${build.id}_hgcache.log">
    89 					<arg value="${sf.common.config.dir}/tools/cachefiles.pl"/>
    89 					<arg value="${sf.common.config.dir}/tools/cachefiles.pl"/>
    90 					<arg value="${sf.spec.job.rootdir}/hgcache"/>
    90 					<arg value="${sf.spec.sourcesync.cachelocation}"/>
    91 					<arg value="${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}"/>
    91 					<arg value="${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}"/>
    92 					<arg value="${sf.common.config.dir}/generated/${sf.spec.sourcesync.sourcespecfile}"/>
    92 					<arg value="${sf.common.config.dir}/generated/${sf.spec.sourcesync.sourcespecfile}"/>
    93 				</exec>
    93 				</exec>
    94 			</then>
    94 			</then>
    95 		</if>
    95 		</if>
   257 
   257 
   258         <!-- tools baseline must come before epoc baseline to allow clean listing -->
   258         <!-- tools baseline must come before epoc baseline to allow clean listing -->
   259         <if>
   259         <if>
   260             <istrue value="${sf.spec.toolsbaseline.enable}" />
   260             <istrue value="${sf.spec.toolsbaseline.enable}" />
   261             <then>
   261             <then>
       
   262 
       
   263                 <!-- record toolsbaseline information in BOM file -->
       
   264                 <delete file="${build.drive}/output/logs/BOM/toolsbaseline.txt" quiet="true"/>
       
   265                 <exec executable="cmd" output="${build.drive}/output/logs/BOM/toolsbaseline.txt">
       
   266                     <arg value="/c"/>
       
   267                     <arg value="echo"/>
       
   268                     <arg value="${sf.spec.toolsbaseline.location}"/>
       
   269                 </exec>
       
   270 
   262                 <!-- wrapper around preparation-getenv but with diff params -->
   271                 <!-- wrapper around preparation-getenv but with diff params -->
   263                 <runtarget target="sf-getenv-tools"/>
   272                 <runtarget target="sf-getenv-tools"/>
   264                 
   273                 
   265                 <echo message="INFO Getting tools environment listing"/>
   274                 <echo message="INFO Getting tools environment listing"/>
   266                 <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_toolsbaseline.log">
   275                 <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_toolsbaseline.log">
   267                     <arg value="${sf.common.config.dir}/tools/listdir.pl"/>
   276                     <arg value="${sf.common.config.dir}/tools/listdir.pl"/>
   268                     <arg value="${build.drive}/epoc32"/>
   277                     <arg value="${build.drive}/epoc32"/>
   269                 </exec>
   278                 </exec>
   270             </then>
   279             </then>
       
   280             <else>
       
   281                 <!-- record fact that no tools baseline used. required by diamondize-bom  -->
       
   282                 <touch file="${build.drive}/output/logs/BOM/toolsbaseline.txt"/>
       
   283             </else>
   271         </if>        
   284         </if>        
   272         <if>
   285         <if>
   273             <istrue value="${sf.spec.baseline.enable}" />
   286             <istrue value="${sf.spec.baseline.enable}" />
   274             <then>
   287             <then>
   275             
   288             
   537             <data expandProperties="yes">
   550             <data expandProperties="yes">
   538                 ant: antProperties()
   551                 ant: antProperties()
   539                 config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]})
   552                 config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]})
   540                 project: csv(${build.drive}/output/logs/BOM/project.csv,{separator:',',headers:[loc,dst,rev]})
   553                 project: csv(${build.drive}/output/logs/BOM/project.csv,{separator:',',headers:[loc,dst,rev]})
   541                 baseline: slicedText(${build.drive}/output/logs/BOM/baseline.txt,{trim})
   554                 baseline: slicedText(${build.drive}/output/logs/BOM/baseline.txt,{trim})
   542                 sources: csv(${build.drive}/output/logs/BOM/sources.csv,{separator:',',headers:[loc,dst,rev]})              
   555                 toolsbaseline: slicedText(${build.drive}/output/logs/BOM/toolsbaseline.txt,{trim})
       
   556                 sources: csv(${build.drive}/output/logs/BOM/sources.csv,{separator:',',headers:[loc,dst,type,rev,sysdef]})              
   543             </data>
   557             </data>
   544         </fmpp>
   558         </fmpp>
   545         <!-- Make a copy in BOM dir -->
   559         <!-- Make a copy in BOM dir -->
   546         <copy file="${build.drive}/output/logs/sf-diamondize-bom.xml" tofile="${build.log.dir}/BOM/build-info.xml"/>
   560         <copy file="${build.drive}/output/logs/sf-diamondize-bom.xml" tofile="${build.log.dir}/BOM/build-info.xml"/>
   547     </target>
   561     </target>
   717         
   731         
   718         <echo message="INFO Updating smoketest package with test info"/>
   732         <echo message="INFO Updating smoketest package with test info"/>
   719         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log">
   733         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log">
   720             <arg value="ats_specialise_test_drop.pl"/>
   734             <arg value="ats_specialise_test_drop.pl"/>
   721             <arg value="--test-drop-name=Smoketest-${build.id}"/> 
   735             <arg value="--test-drop-name=Smoketest-${build.id}"/> 
   722             <arg value="--device-name=ATSINTERFACE EMULATOR on ${env.COMPUTERNAME}"/>
   736             <arg value="--device-name=GENERIC EMULATOR on ${env.COMPUTERNAME}"/>
   723             <arg value="--src=${sf.spec.test.package.location}\smoketest.zip"/>
   737             <arg value="--src=${sf.spec.test.package.location}\smoketest.zip"/>
   724             <arg value="--dest=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>
   738             <arg value="--dest=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>
   725 
       
   726         </exec>
   739         </exec>
   727         <!-- Now ready to send to ATS3 -->
   740         <!-- Now ready to send to ATS3 -->
   728     </target>   
   741     </target>   
   729 
   742 
   730     <!-- runs analysis of missing bins and source -->
   743     <!-- runs analysis of missing bins and source -->
   759 
   772 
   760         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_analysecomponents.log">
   773         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_analysecomponents.log">
   761             <arg value="${sf.common.config.dir}/tools/analysis/analyse_components.pl"/>
   774             <arg value="${sf.common.config.dir}/tools/analysis/analyse_components.pl"/>
   762             <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
   775             <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
   763             <arg value="${build.id}_what_results.csv_results.csv"/>
   776             <arg value="${build.id}_what_results.csv_results.csv"/>
   764             <arg value="${sf.project.location}/sysdefs/system_model_os_contributed.xml"/>
   777             <arg value="${sf.project.location}/sysdefs/system_model_os.xml"/>
   765             <arg value="${sf.project.location}/sysdefs/system_model_s60_contributed.xml"/>
       
   766         </exec>
   778         </exec>
   767 
   779 
   768         <echo message="Running collision analysis"/>
   780         <echo message="Running collision analysis"/>
   769         <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log">
   781         <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log">
   770             <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/>
   782             <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/>