common/templates/source-spec.ant.xml.ftl
changeset 62 2771e394c9bd
parent 58 f5faa19dd3ed
parent 34 c10840c6fcbb
child 68 c86f60d45216
--- a/common/templates/source-spec.ant.xml.ftl	Wed Apr 15 14:30:07 2009 +0100
+++ b/common/templates/source-spec.ant.xml.ftl	Wed Apr 15 16:46:01 2009 +0100
@@ -2,7 +2,7 @@
 <project name="SF-SOURCESPEC" default="all" xmlns:hlm="http://www.nokia.com/helium">
 
 <#assign fileset = "" />
-<#assign target_depends = "" />
+<#assign sync_list = "" />
 <#assign dollar = "$"/>
 <#assign count = 0 />
 
@@ -47,15 +47,9 @@
         
         </sequential>
     </target>
-    <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" />
     
-    <#if (count == 0) >
-    				<#assign target_depends = "reset-bom-sources-csv," + "sf-prebuild-${count}" />
-    </#if>
-    <#if (count > 0) >
-            <#assign target_depends ="${target_depends}," + "sf-prebuild-${count}"/>
-    </#if>
-    
+    <#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 count = count + 1 />
 
 </#list>
@@ -65,6 +59,11 @@
         ${fileset}
     </path>
 
-<target name="all" depends="${target_depends}"/>
+<target name="all" depends="reset-bom-sources-csv">
 
+  <parallel>
+    ${sync_list}
+  </parallel>
+
+</target>
 </project>
\ No newline at end of file