author | Simon Howkins <simonh@symbian.org> |
Wed, 20 Oct 2010 14:03:22 +0100 | |
changeset 1311 | e859ade4e462 |
parent 1250 | cf7f8806ba43 |
permissions | -rw-r--r-- |
1249
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
2 |
<project name="SF-FINALIZE" xmlns:hlm="http://www.nokia.com/helium"> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
3 |
|
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
4 |
<!-- Transform BRAG xslt and display status at the end of the build --> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
5 |
<target name="sf-finalize"> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
6 |
<delete dir="${build.drive}/output/logs/summary/"> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
7 |
<include name="**/*.html"/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
8 |
</delete> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
9 |
<available property="sf-summary-dir-available" file="${build.drive}/output/logs/summary" type="dir"/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
10 |
<if><isset property="sf-summary-dir-available"/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
11 |
<then> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
12 |
<xslt basedir="${build.drive}/output/logs/summary" destdir="${temp.build.dir}" extension=".html" style="brag.xsl"/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
13 |
<loadfile srcFile="${temp.build.dir}/_BRAG.html" property="sf.brag.status"> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
14 |
<filterchain> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
15 |
<linecontainsregexp> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
16 |
<regexp pattern="(BLACK|RED|AMBER|GREEN)"/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
17 |
</linecontainsregexp> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
18 |
<trim/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
19 |
<striplinebreaks/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
20 |
<deletecharacters chars="\>\<\h2\h1\/"/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
21 |
</filterchain> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
22 |
</loadfile> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
23 |
</then> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
24 |
<else> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
25 |
<property name="sf.brag.status" value="BLACK"/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
26 |
</else> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
27 |
</if> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
28 |
<echo message="BRAG STATUS: [${sf.brag.status}] - full build details available at ${build.drive}\output\logs\summary\_BRAG.xml"/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
29 |
|
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
30 |
<!-- record brag information in BIT file --> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
31 |
<echo message="build_brag	${sf.brag.status}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
32 |
|
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
33 |
<!-- record build finished time in BIT file --> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
34 |
<tstamp> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
35 |
<format property="sf.build.finishedtime" pattern="yyyy-MM-dd HH:mm:ss" locale="en,UK"/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
36 |
</tstamp> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
37 |
<echo message="finished	${sf.build.finishedtime}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
38 |
|
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
39 |
<!-- upload BIT info to database --> |
1250
cf7f8806ba43
Upload of build info to bit db should be controlled by sf.spec.publish.enable
Dario Sestito <darios@symbian.org>
parents:
1249
diff
changeset
|
40 |
<if><istrue value="${sf.spec.publish.enable}"/><then> |
cf7f8806ba43
Upload of build info to bit db should be controlled by sf.spec.publish.enable
Dario Sestito <darios@symbian.org>
parents:
1249
diff
changeset
|
41 |
<exec executable="perl" dir="${sf.common.config.dir}/tools" failonerror="false"> |
1249
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
42 |
<arg value="bitops.pl"/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
43 |
<arg value="-c"/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
44 |
<arg value="-f"/> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
45 |
<arg value="${build.log.dir}/bitinfo.txt"/> |
1250
cf7f8806ba43
Upload of build info to bit db should be controlled by sf.spec.publish.enable
Dario Sestito <darios@symbian.org>
parents:
1249
diff
changeset
|
46 |
</exec> |
cf7f8806ba43
Upload of build info to bit db should be controlled by sf.spec.publish.enable
Dario Sestito <darios@symbian.org>
parents:
1249
diff
changeset
|
47 |
</then></if> |
1249
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
48 |
</target> |
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
49 |
|
96548ab09767
Add brag determination in a separate hlm call
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
50 |
</project> |