Make BOM identify thread safe
authorBuildAdmin@LON-ENGBUILD87
Tue, 21 Apr 2009 17:47:19 +0100
changeset 68 c86f60d45216
parent 67 69c57a9ccb7d
child 69 c933fe776713
Make BOM identify thread safe
common/templates/source-spec.ant.xml.ftl
--- a/common/templates/source-spec.ant.xml.ftl	Tue Apr 21 16:45:39 2009 +0100
+++ b/common/templates/source-spec.ant.xml.ftl	Tue Apr 21 17:47:19 2009 +0100
@@ -3,6 +3,7 @@
 
 <#assign fileset = "" />
 <#assign sync_list = "" />
+<#assign bom_list  = "" />
 <#assign dollar = "$"/>
 <#assign count = 0 />
 
@@ -28,6 +29,13 @@
                     </hlm:latestTag>
                 </hlm:update>
             </hlm:scm>
+        
+        </sequential>
+    </target>
+
+    <target name="sf-bom-info-${count}">
+
+        <sequential>
             
             <!-- 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">
@@ -47,9 +55,11 @@
         
         </sequential>
     </target>
-    
+
+
     <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" />       
-    <#assign sync_list = "${sync_list}" + "<runtarget target=\"sf-prebuild-${count}\"/>\n"/>    
+    <#assign sync_list = "${sync_list}" + "<runtarget target=\"sf-prebuild-${count}\"/>\n"/>       
+    <#assign bom_list = "${bom_list}" + "<runtarget target=\"sf-bom-info-${count}\"/>\n"/>    
     <#assign count = count + 1 />
 
 </#list>
@@ -65,5 +75,8 @@
     ${sync_list}
   </parallel>
 
+
+  ${bom_list}
+
 </target>
 </project>
\ No newline at end of file