common/build.xml
changeset 471 fa59cc9be549
parent 467 5d3a9a466963
child 472 296ea0545429
equal deleted inserted replaced
470:eadcd4405e6a 471:fa59cc9be549
   227         <!-- record config and project information in BOM files -->
   227         <!-- record config and project information in BOM files -->
   228         <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.repo">
   228         <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.repo">
   229             <arg value="showconfig"/>
   229             <arg value="showconfig"/>
   230             <arg value="paths.default"/>
   230             <arg value="paths.default"/>
   231         </exec>
   231         </exec>
   232         <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.rev">
       
   233             <arg value="identify"/>
       
   234             <arg value="-n"/>
       
   235         </exec>
       
   236         <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.checksum">
   232         <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.checksum">
   237             <arg value="identify"/>
   233             <arg value="identify"/>
   238             <arg value="-i"/>
   234             <arg value="-i"/>
   239         </exec>
   235         </exec>
   240         <echo message="dir ${sf.config.dir} : revision ${sf.job.bom.config.rev}:${sf.job.bom.config.checksum}"/>
   236         <echo message="${sf.job.bom.config.repo},sf-config,${sf.job.bom.config.checksum}" file="${build.drive}/output/logs/BOM/config.csv"/>
   241         <echo message="${sf.job.bom.config.repo},sf-config,${sf.job.bom.config.rev}:${sf.job.bom.config.checksum}" file="${build.drive}/output/logs/BOM/config.csv"/>
       
   242 
   237 
   243         <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.repo">
   238         <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.repo">
   244             <arg value="showconfig"/>
   239             <arg value="showconfig"/>
   245             <arg value="paths.default"/>
   240             <arg value="paths.default"/>
   246         </exec>
   241         </exec>
   247         <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.rev">
       
   248             <arg value="identify"/>
       
   249             <arg value="-n"/>
       
   250         </exec>
       
   251         <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.checksum">
   242         <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.checksum">
   252             <arg value="identify"/>
   243             <arg value="identify"/>
   253             <arg value="-i"/>
   244             <arg value="-i"/>
   254         </exec>
   245         </exec>
   255         <echo message="dir ${sf.project.location} : revision ${sf.job.bom.project.rev}:${sf.job.bom.project.checksum}"/>
   246 	<echo message="${sf.job.bom.project.repo},build/config,${sf.job.bom.project.checksum}" file="${build.drive}/output/logs/BOM/project.csv"/>
   256 	<echo message="${sf.job.bom.project.repo},build/config,${sf.job.bom.project.rev}:${sf.job.bom.project.checksum}" file="${build.drive}/output/logs/BOM/project.csv"/>
       
   257     </target>
   247     </target>
   258 
   248 
   259     <target name="sf-getenvs">
   249     <target name="sf-getenvs">
   260         <!-- tools baseline must come before epoc baseline to allow clean listing -->
   250         <!-- tools baseline must come before epoc baseline to allow clean listing -->
   261         <touch file="${build.drive}/output/logs/BOM/toolsbaseline.txt"/>
   251         <touch file="${build.drive}/output/logs/BOM/toolsbaseline.txt"/>
   417     
   407     
   418     <target name="sf-get-source" depends="sf-generate-source-spec">
   408     <target name="sf-get-source" depends="sf-generate-source-spec">
   419         <ant antfile="${sf.common.config.dir}/generated/source-spec.ant.xml" />
   409         <ant antfile="${sf.common.config.dir}/generated/source-spec.ant.xml" />
   420     </target>
   410     </target>
   421     
   411     
   422     <target name="sf-diamondize-bom">
   412     <target name="sf-diamondize-bom" depends="sf-record-proj-conf-bom">
   423         <if>
   413         <if>
   424             <istrue value="${sf.spec.publish.enable}"/>
   414             <istrue value="${sf.spec.publish.enable}"/>
   425             <then>
   415             <then>
   426                 <fmpp sourceFile="${sf.common.config.dir}/templates/build-info.xml.ftl"
   416                 <fmpp sourceFile="${sf.common.config.dir}/templates/build-info.xml.ftl"
   427                       outputFile="${build.drive}/output/logs/sf-diamondize-bom.xml">
   417                       outputFile="${build.drive}/output/logs/sf-diamondize-bom.xml">