Added recording of baseline info in a BOM file
authorDarioS@UK-DarioS.symbian.int
Thu, 09 Apr 2009 11:14:30 +0100
changeset 56 68c06bb4fbe2
parent 55 4b303c38b677
child 57 99442c2e6951
Added recording of baseline info in a BOM file
common/build.xml
common/templates/source-spec.ant.xml.ftl
--- a/common/build.xml	Wed Apr 08 16:20:10 2009 +0100
+++ b/common/build.xml	Thu Apr 09 11:14:30 2009 +0100
@@ -85,7 +85,18 @@
         <if>
             <istrue value="${sf.spec.baseline.enable}" />
             <then>
+            
+                <!-- record baseline information in BOM file -->
+                <delete file="${ant['build.drive']}/output/BOM/baseline.txt" quiet="true"/>
+                <exec executable="cmd" output="${ant['build.drive']}/output/BOM/baseline.txt">
+                    <arg value="/c"/>
+                    <arg value="echo"/>
+                    <arg value="${sf.spec.baseline.location}"/>
+                </exec>
+                
+                <!-- run interal target preparation-getenv -->
                 <runtarget target="preparation-getenv"/>
+                
             </then>
         </if>
         
--- a/common/templates/source-spec.ant.xml.ftl	Wed Apr 08 16:20:10 2009 +0100
+++ b/common/templates/source-spec.ant.xml.ftl	Thu Apr 09 11:14:30 2009 +0100
@@ -6,6 +6,7 @@
 <#assign dollar = "$"/>
 <#assign count = 0 />
 
+    <!-- remove previous version of BOM file (if exists)  -->
     <target name="reset-bom-sources-csv">
         <delete file="${ant['build.drive']}/output/BOM/sources.csv" quiet="true"/>
     </target>
@@ -28,7 +29,7 @@
                 </hlm:update>
             </hlm:scm>
             
-            <!-- record info on source code repo/rev -->
+            <!-- record info on source code repo/rev in BOM file  -->
             <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="sf.sourcesync.${count}.rev">
                 <arg value="identify"/>
                 <arg value="-i"/>