common/templates/source-spec.ant.xml.ftl
changeset 34 c10840c6fcbb
parent 17 c677077df18c
child 62 2771e394c9bd
equal deleted inserted replaced
33:4753c9491d0c 34:c10840c6fcbb
     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 <#list data as pkg_detail>
     9 <#list data as pkg_detail>
    10     <target name="sf-prebuild-${count}">
    10     <target name="sf-prebuild-${count}">
    23                     </hlm:latestTag>
    23                     </hlm:latestTag>
    24                 </hlm:update>
    24                 </hlm:update>
    25             </hlm:scm>
    25             </hlm:scm>
    26         </sequential>
    26         </sequential>
    27     </target>
    27     </target>
    28     <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" />
       
    29     
    28     
    30     <#if (count == 0) >
    29     <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" />       
    31     				<#assign target_depends = "${target_depends}" + "sf-prebuild-${count}" />
    30     <#assign sync_list = "${sync_list}" + "<runtarget target=\"sf-prebuild-${count}\"/>\n"/>    
    32     </#if>
       
    33     <#if (count > 0) >
       
    34             <#assign target_depends ="${target_depends}" + ","+"sf-prebuild-${count}"/>
       
    35     </#if>
       
    36     
       
    37     <#assign count = count + 1 />
    31     <#assign count = count + 1 />
    38 
    32 
    39 </#list>
    33 </#list>
    40 
    34 
    41     <path id="system.definition.files">
    35     <path id="system.definition.files">
    42         <fileset dir="${dollar}{sf.common.config.dir}/sysdefs" includes="*.sysdef.xml"/>
    36         <fileset dir="${dollar}{sf.common.config.dir}/sysdefs" includes="*.sysdef.xml"/>
    43         ${fileset}
    37         ${fileset}
    44     </path>
    38     </path>
    45 
    39 
    46 <target name="all" depends="${target_depends}"/>
    40 <target name="all">
    47 
    41 
       
    42   <parallel>
       
    43     ${sync_list}
       
    44   </parallel>
       
    45 
       
    46 </target>
    48 </project>
    47 </project>