common/build.xml
changeset 1167 18bce39467dc
parent 1166 ed7be4dda2ab
child 1168 fab4ba9e8d93
--- a/common/build.xml	Mon Jul 12 15:13:57 2010 +0100
+++ b/common/build.xml	Mon Jul 12 16:03:08 2010 +0100
@@ -303,10 +303,10 @@
         </then>
       </if>
       
+      <!-- Supply build-start info in a BIT file -->
       <tstamp>
         <format property="time.now" pattern="yyyy-MM-dd HH:mm:ss" locale="en,UK"/>
       </tstamp>
-
       <echo message="build_id_string&#x0009;${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
       <echo message="package&#x0009;${sf.spec.job.name}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
       <echo message="platform&#x0009;${sf.spec.job.codeline}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
@@ -345,6 +345,12 @@
           </exec>
         </then>
       </if>
+      <!-- Supply labels info to the BIT file -->
+      <for list="${sf.spec.publish.diamonds.tag}" param="label">
+        <sequential>
+          <echo message="label&#x0009;@{label}${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/>
+        </sequential>
+      </for>
     </target>
     
     <target name="sf-record-proj-conf-bom">