common/build.postbuild.xml
changeset 1249 96548ab09767
parent 1208 86025b85795b
child 1251 0fc9e31020ea
equal deleted inserted replaced
1247:311e0398c886 1249:96548ab09767
   101                 
   101                 
   102                 <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
   102                 <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
   103                 <runtarget target="sf-publish"/>
   103                 <runtarget target="sf-publish"/>
   104             </then>
   104             </then>
   105         </if>
   105         </if>
   106         <runtarget target="sf-build-summary"/>
       
   107         <stopwatch name="sf-postbuild" action="elapsed"/>
   106         <stopwatch name="sf-postbuild" action="elapsed"/>
   108     </target>
   107     </target>
   109 
   108 
   110     <target name="sf-tag-hg-code">
   109     <target name="sf-tag-hg-code">
   111         <!-- To do the tagging, we need to know what tag to use, and who the author is (from hg's perspective) -->
   110         <!-- To do the tagging, we need to know what tag to use, and who the author is (from hg's perspective) -->
  1095                 </then>
  1094                 </then>
  1096             </if>
  1095             </if>
  1097         </then>
  1096         </then>
  1098         </if>        
  1097         </if>        
  1099     </target>
  1098     </target>
  1100 
  1099     
  1101     <!-- Transform BRAG xslt and display status at the end of the build -->
       
  1102     <target name="sf-build-summary">
       
  1103     <delete dir="${build.drive}/output/logs/summary/">
       
  1104       <include name="**/*.html"/>
       
  1105     </delete>
       
  1106      <xslt basedir="${build.drive}/output/logs/summary" destdir="${temp.build.dir}" extension=".html" style="brag.xsl"/>    
       
  1107     <loadfile srcFile="${temp.build.dir}/_BRAG.html" property="sf.brag.status">
       
  1108     <filterchain>
       
  1109       <linecontainsregexp>
       
  1110         <regexp pattern="(BLACK|RED|AMBER|GREEN)"/>
       
  1111       </linecontainsregexp>
       
  1112       <trim/>
       
  1113       <striplinebreaks/>
       
  1114       <deletecharacters chars="\&gt;\&lt;\h2\h1\/"/>
       
  1115     </filterchain>
       
  1116     </loadfile>    
       
  1117     <echo message="BRAG STATUS: [${sf.brag.status}] - full build details available at ${build.drive}\output\logs\summary\_BRAG.xml"/>
       
  1118     
       
  1119     <!-- record brag information in BIT file -->
       
  1120     <echo message="build_brag&#x0009;${sf.brag.status}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
       
  1121     </target>
       
  1122 
       
  1123 </project>
  1100 </project>