common/templates/source-spec.ant.xml.ftl
changeset 62 2771e394c9bd
parent 58 f5faa19dd3ed
parent 34 c10840c6fcbb
child 68 c86f60d45216
equal deleted inserted replaced
61:6066a7d39270 62:2771e394c9bd
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2 <project name="SF-SOURCESPEC" default="all" xmlns:hlm="http://www.nokia.com/helium">
     2 <project name="SF-SOURCESPEC" default="all" xmlns:hlm="http://www.nokia.com/helium">
     3 
     3 
     4 <#assign fileset = "" />
     4 <#assign fileset = "" />
     5 <#assign target_depends = "" />
     5 <#assign sync_list = "" />
     6 <#assign dollar = "$"/>
     6 <#assign dollar = "$"/>
     7 <#assign count = 0 />
     7 <#assign count = 0 />
     8 
     8 
     9     <!-- remove previous version of BOM file (if exists)  -->
     9     <!-- remove previous version of BOM file (if exists)  -->
    10     <target name="reset-bom-sources-csv">
    10     <target name="reset-bom-sources-csv">
    45                 <arg value="${pkg_detail.source},${pkg_detail.dst},${dollar}{sf.sourcesync.${count}.rev}:${dollar}{sf.sourcesync.${count}.checksum}"/>
    45                 <arg value="${pkg_detail.source},${pkg_detail.dst},${dollar}{sf.sourcesync.${count}.rev}:${dollar}{sf.sourcesync.${count}.checksum}"/>
    46             </exec>
    46             </exec>
    47         
    47         
    48         </sequential>
    48         </sequential>
    49     </target>
    49     </target>
    50     <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" />
       
    51     
    50     
    52     <#if (count == 0) >
    51     <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" />       
    53     				<#assign target_depends = "reset-bom-sources-csv," + "sf-prebuild-${count}" />
    52     <#assign sync_list = "${sync_list}" + "<runtarget target=\"sf-prebuild-${count}\"/>\n"/>    
    54     </#if>
       
    55     <#if (count > 0) >
       
    56             <#assign target_depends ="${target_depends}," + "sf-prebuild-${count}"/>
       
    57     </#if>
       
    58     
       
    59     <#assign count = count + 1 />
    53     <#assign count = count + 1 />
    60 
    54 
    61 </#list>
    55 </#list>
    62 
    56 
    63     <path id="system.definition.files">
    57     <path id="system.definition.files">
    64         <fileset dir="${dollar}{sf.common.config.dir}/sysdefs" includes="*.sysdef.xml"/>
    58         <fileset dir="${dollar}{sf.common.config.dir}/sysdefs" includes="*.sysdef.xml"/>
    65         ${fileset}
    59         ${fileset}
    66     </path>
    60     </path>
    67 
    61 
    68 <target name="all" depends="${target_depends}"/>
    62 <target name="all" depends="reset-bom-sources-csv">
    69 
    63 
       
    64   <parallel>
       
    65     ${sync_list}
       
    66   </parallel>
       
    67 
       
    68 </target>
    70 </project>
    69 </project>