--- a/common/build.postbuild.xml Tue Jun 22 11:48:19 2010 +0100
+++ b/common/build.postbuild.xml Thu Jun 24 13:29:52 2010 +0100
@@ -96,6 +96,7 @@
<runtarget target="sf-publish"/>
</then>
</if>
+ <runtarget target="sf-build-summary"/>
<stopwatch name="sf-postbuild" action="elapsed"/>
</target>
@@ -1098,5 +1099,24 @@
</then>
</if>
</target>
-
+
+ <!-- Transform BRAG xslt and display status at the end of the build -->
+ <target name="sf-build-summary">
+ <delete dir="${build.drive}/output/logs/summary/">
+ <include name="**/*.html"/>
+ </delete>
+ <xslt basedir="${build.drive}/output/logs/summary" destdir="${temp.build.dir}" extension=".html" style="brag.xsl"/>
+ <loadfile srcFile="${temp.build.dir}/_BRAG.html" property="sf.brag.status">
+ <filterchain>
+ <linecontainsregexp>
+ <regexp pattern="(BLACK|RED|AMBER|GREEN)"/>
+ </linecontainsregexp>
+ <trim/>
+ <striplinebreaks/>
+ <deletecharacters chars="\>\<\h2\h1\/"/>
+ </filterchain>
+ </loadfile>
+ <echo message="BRAG STATUS: [${sf.brag.status}] - full build details available at ${build.drive}\output\logs\summary\_BRAG.xml"/>
+ </target>
+
</project>