common/templates/source-spec.ant.xml.ftl
changeset 7 389e1e1f1583
child 17 c677077df18c
equal deleted inserted replaced
5:9564faef3a98 7:389e1e1f1583
       
     1 <?xml version="1.0"?>
       
     2 <project name="hg-build-gen-xml" default="all" xmlns:hlm="http://www.nokia.com/helium">
       
     3 
       
     4 <#assign fileset = "" />
       
     5 <#assign target_depends = "" />
       
     6 <#assign dollar = "$"/>
       
     7 <#assign count = 0 />
       
     8 
       
     9 <#list data as pkg_detail>
       
    10     <target name="sf-prebuild-${count}">
       
    11         <#if (count > 0) >
       
    12             <#assign fileset = "${fileset}" + "," />
       
    13         </#if>
       
    14         <sequential>
       
    15             <delete dir="${ant['build.drive']}${pkg_detail.dst}" failonerror="false"/>
       
    16             <mkdir dir="${ant['build.drive']}${pkg_detail.dst}"/>
       
    17             <hlm:scm verbose="true" scmUrl="scm:hg:${pkg_detail.source}">
       
    18                 <hlm:checkout basedir="${ant['build.drive']}${pkg_detail.dst}"/>
       
    19                 <hlm:tags basedir="${ant['build.drive']}${pkg_detail.dst}" reference="hg.tags.id${dollar}{refid}"/>
       
    20                 <hlm:update basedir="${ant['build.drive']}${pkg_detail.dst}">
       
    21                     <hlm:latestTag pattern="${pkg_detail.tag}">
       
    22                         <hlm:tagSet refid="hg.tags.id${dollar}{refid}" />
       
    23                     </hlm:latestTag>
       
    24                 </hlm:update>
       
    25             </hlm:scm>
       
    26         </sequential>
       
    27     </target>
       
    28     <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" />
       
    29     <#assign target_depends = "${target_depends}" + "sf-prebuild-${count}" />
       
    30     <#assign count = "${count}" + 1 />
       
    31 </#list>
       
    32 
       
    33     <path id="system.definition.files">
       
    34         <fileset dir="${dollar}{sf.common.config.dir}/sysdefs" includes="*.sysdef.xml"/>
       
    35         ${fileset}
       
    36     </path>
       
    37 
       
    38 <target name="all" depends="${target_depends}"/>
       
    39 
       
    40 </project>