Add tools baseline to BOM
authorShabe Razvi <shaber@symbian.org>
Thu, 02 Jul 2009 11:50:44 +0100
changeset 225 59f8bbf91345
parent 224 a237fdfca8c5
child 226 06dc202a1369
child 227 ab5a0930b5c8
Add tools baseline to BOM
common/build.xml
common/templates/build-info.xml.ftl
--- a/common/build.xml	Tue Jun 30 17:20:00 2009 +0100
+++ b/common/build.xml	Thu Jul 02 11:50:44 2009 +0100
@@ -240,6 +240,15 @@
         <if>
             <istrue value="${sf.spec.toolsbaseline.enable}" />
             <then>
+
+                <!-- record toolsbaseline information in BOM file -->
+                <delete file="${build.drive}/output/logs/BOM/toolsbaseline.txt" quiet="true"/>
+                <exec executable="cmd" output="${build.drive}/output/logs/BOM/toolsbaseline.txt">
+                    <arg value="/c"/>
+                    <arg value="echo"/>
+                    <arg value="${sf.spec.toolsbaseline.location}"/>
+                </exec>
+
                 <!-- wrapper around preparation-getenv but with diff params -->
                 <runtarget target="sf-getenv-tools"/>
                 
@@ -249,6 +258,10 @@
                     <arg value="${build.drive}/epoc32"/>
                 </exec>
             </then>
+            <else>
+                <!-- record fact that no tools baseline used. required by diamondize-bom  -->
+                <touch file="${build.drive}/output/logs/BOM/toolsbaseline.txt"/>
+            </else>
         </if>        
         <if>
             <istrue value="${sf.spec.baseline.enable}" />
@@ -492,6 +505,7 @@
                 config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]})
                 project: csv(${build.drive}/output/logs/BOM/project.csv,{separator:',',headers:[loc,dst,rev]})
                 baseline: slicedText(${build.drive}/output/logs/BOM/baseline.txt,{trim})
+                toolsbaseline: slicedText(${build.drive}/output/logs/BOM/toolsbaseline.txt,{trim})
                 sources: csv(${build.drive}/output/logs/BOM/sources.csv,{separator:',',headers:[loc,dst,rev]})              
             </data>
         </fmpp>
--- a/common/templates/build-info.xml.ftl	Tue Jun 30 17:20:00 2009 +0100
+++ b/common/templates/build-info.xml.ftl	Thu Jul 02 11:50:44 2009 +0100
@@ -20,6 +20,12 @@
       </#list>
     </project>
     <project>
+      <name>Tools Baseline</name>
+      <#list toolsbaseline as b>
+      <baseline>${b}</baseline>
+      </#list>
+    </project>
+    <project>
  	  <name>Sources</name>
  	  <#list sources as s>
  	  <baseline>${s.loc}#${s.rev}</baseline>