Added framework for specifying a "sources.csv" for test repos (separate from both the FBF and the sources repos).
authorSimon Howkins <simonh@symbian.org>
Tue, 26 Jan 2010 16:58:19 +0000
changeset 856 0e553fdaa218
parent 855 9d6a5309852c
child 857 c72c6eafadc6
Added framework for specifying a "sources.csv" for test repos (separate from both the FBF and the sources repos).
common/build.xml
common/templates/source-spec.ant.xml.ftl
--- a/common/build.xml	Tue Jan 26 15:39:24 2010 +0000
+++ b/common/build.xml	Tue Jan 26 16:58:19 2010 +0000
@@ -172,11 +172,16 @@
         <!-- TODO: 2. Change fmpp data to be a full property rather than relative path -->
         <delete file="${temp.build.dir}/source-spec.ant.xml"/>
         
+        <property name="sf.test.csv.file" value="nul:"/>
+
         <fmpp sourceFile="${sf.common.config.dir}/templates/source-spec.ant.xml.ftl"
               outputFile="${temp.build.dir}/source-spec.ant.xml">
               <data expandProperties="yes">
                     ant: antProperties()
-                    data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
+                    data: [
+                        csv(${sf.test.csv.file}, {separator:','})
+                        csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
+                    ]
               </data>
         </fmpp>
     </target>
--- a/common/templates/source-spec.ant.xml.ftl	Tue Jan 26 15:39:24 2010 +0000
+++ b/common/templates/source-spec.ant.xml.ftl	Tue Jan 26 16:58:19 2010 +0000
@@ -23,7 +23,8 @@
         <delete file="${ant['build.drive']}/output/logs/BOM/sources.csv" quiet="true"/>
     </target>
 
-<#list data as pkg_detail>
+<#list data as csv_file>
+  <#list csv_file as pkg_detail>
     <target name="sf-prebuild-${count}">
         <sequential>
             <!-- create sf\layer dir  -->
@@ -136,6 +137,7 @@
     <#assign bom_list = "${bom_list}" + "<runtarget target=\"sf-bom-info-${count}\"/>\r\n  "/>
     <#assign change_list = "${change_list}" + "<runtarget target=\"sf-bom-change-info-${count}\"/>\r\n  "/>
     <#assign count = count + 1 />
+  </#list>
 </#list>
 
     <path id="system.definition.files">