common/build.xml
changeset 225 59f8bbf91345
parent 224 a237fdfca8c5
child 228 f1f162027366
equal deleted inserted replaced
224:a237fdfca8c5 225:59f8bbf91345
   238 
   238 
   239         <!-- tools baseline must come before epoc baseline to allow clean listing -->
   239         <!-- tools baseline must come before epoc baseline to allow clean listing -->
   240         <if>
   240         <if>
   241             <istrue value="${sf.spec.toolsbaseline.enable}" />
   241             <istrue value="${sf.spec.toolsbaseline.enable}" />
   242             <then>
   242             <then>
       
   243 
       
   244                 <!-- record toolsbaseline information in BOM file -->
       
   245                 <delete file="${build.drive}/output/logs/BOM/toolsbaseline.txt" quiet="true"/>
       
   246                 <exec executable="cmd" output="${build.drive}/output/logs/BOM/toolsbaseline.txt">
       
   247                     <arg value="/c"/>
       
   248                     <arg value="echo"/>
       
   249                     <arg value="${sf.spec.toolsbaseline.location}"/>
       
   250                 </exec>
       
   251 
   243                 <!-- wrapper around preparation-getenv but with diff params -->
   252                 <!-- wrapper around preparation-getenv but with diff params -->
   244                 <runtarget target="sf-getenv-tools"/>
   253                 <runtarget target="sf-getenv-tools"/>
   245                 
   254                 
   246                 <echo message="INFO Getting tools environment listing"/>
   255                 <echo message="INFO Getting tools environment listing"/>
   247                 <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_toolsbaseline.log">
   256                 <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_toolsbaseline.log">
   248                     <arg value="${sf.common.config.dir}/tools/listdir.pl"/>
   257                     <arg value="${sf.common.config.dir}/tools/listdir.pl"/>
   249                     <arg value="${build.drive}/epoc32"/>
   258                     <arg value="${build.drive}/epoc32"/>
   250                 </exec>
   259                 </exec>
   251             </then>
   260             </then>
       
   261             <else>
       
   262                 <!-- record fact that no tools baseline used. required by diamondize-bom  -->
       
   263                 <touch file="${build.drive}/output/logs/BOM/toolsbaseline.txt"/>
       
   264             </else>
   252         </if>        
   265         </if>        
   253         <if>
   266         <if>
   254             <istrue value="${sf.spec.baseline.enable}" />
   267             <istrue value="${sf.spec.baseline.enable}" />
   255             <then>
   268             <then>
   256             
   269             
   490             <data expandProperties="yes">
   503             <data expandProperties="yes">
   491                 ant: antProperties()
   504                 ant: antProperties()
   492                 config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]})
   505                 config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]})
   493                 project: csv(${build.drive}/output/logs/BOM/project.csv,{separator:',',headers:[loc,dst,rev]})
   506                 project: csv(${build.drive}/output/logs/BOM/project.csv,{separator:',',headers:[loc,dst,rev]})
   494                 baseline: slicedText(${build.drive}/output/logs/BOM/baseline.txt,{trim})
   507                 baseline: slicedText(${build.drive}/output/logs/BOM/baseline.txt,{trim})
       
   508                 toolsbaseline: slicedText(${build.drive}/output/logs/BOM/toolsbaseline.txt,{trim})
   495                 sources: csv(${build.drive}/output/logs/BOM/sources.csv,{separator:',',headers:[loc,dst,rev]})              
   509                 sources: csv(${build.drive}/output/logs/BOM/sources.csv,{separator:',',headers:[loc,dst,rev]})              
   496             </data>
   510             </data>
   497         </fmpp>
   511         </fmpp>
   498         <!-- Make a copy in BOM dir -->
   512         <!-- Make a copy in BOM dir -->
   499         <copy file="${build.drive}/output/logs/sf-diamondize-bom.xml" tofile="${build.log.dir}/BOM/build-info.xml"/>
   513         <copy file="${build.drive}/output/logs/sf-diamondize-bom.xml" tofile="${build.log.dir}/BOM/build-info.xml"/>