common/templates/source-spec.ant.xml.ftl
changeset 17 c677077df18c
parent 7 389e1e1f1583
child 36 34dc6e6caaa4
child 55 c10840c6fcbb
equal deleted inserted replaced
16:8707744660e1 17:c677077df18c
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2 <project name="hg-build-gen-xml" 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 target_depends = "" />
     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}">
    11         <#if (count > 0) >
    11         <#if (count > 0) >
    12             <#assign fileset = "${fileset}" + "," />
    12             <#assign fileset = "${fileset}"  />
    13         </#if>
    13         </#if>
    14         <sequential>
    14         <sequential>
    15             <delete dir="${ant['build.drive']}${pkg_detail.dst}" failonerror="false"/>
    15             <delete dir="${ant['build.drive']}${pkg_detail.dst}" failonerror="false"/>
    16             <mkdir dir="${ant['build.drive']}${pkg_detail.dst}"/>
    16             <mkdir dir="${ant['build.drive']}${pkg_detail.dst}"/>
    17             <hlm:scm verbose="true" scmUrl="scm:hg:${pkg_detail.source}">
    17             <hlm:scm verbose="true" scmUrl="scm:hg:${pkg_detail.source}">
    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}\"/>" />
    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}" />
    29     
    30     <#assign count = "${count}" + 1 />
    30     <#if (count == 0) >
       
    31     				<#assign target_depends = "${target_depends}" + "sf-prebuild-${count}" />
       
    32     </#if>
       
    33     <#if (count > 0) >
       
    34             <#assign target_depends ="${target_depends}" + ","+"sf-prebuild-${count}"/>
       
    35     </#if>
       
    36     
       
    37     <#assign count = count + 1 />
       
    38 
    31 </#list>
    39 </#list>
    32 
    40 
    33     <path id="system.definition.files">
    41     <path id="system.definition.files">
    34         <fileset dir="${dollar}{sf.common.config.dir}/sysdefs" includes="*.sysdef.xml"/>
    42         <fileset dir="${dollar}{sf.common.config.dir}/sysdefs" includes="*.sysdef.xml"/>
    35         ${fileset}
    43         ${fileset}