common/templates/source-spec.ant.xml.ftl
changeset 68 c86f60d45216
parent 62 2771e394c9bd
child 163 fc4460f54beb
equal deleted inserted replaced
67:69c57a9ccb7d 68:c86f60d45216
     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 sync_list = "" />
     5 <#assign sync_list = "" />
       
     6 <#assign bom_list  = "" />
     6 <#assign dollar = "$"/>
     7 <#assign dollar = "$"/>
     7 <#assign count = 0 />
     8 <#assign count = 0 />
     8 
     9 
     9     <!-- remove previous version of BOM file (if exists)  -->
    10     <!-- remove previous version of BOM file (if exists)  -->
    10     <target name="reset-bom-sources-csv">
    11     <target name="reset-bom-sources-csv">
    26                     <hlm:latestTag pattern="${pkg_detail.tag}">
    27                     <hlm:latestTag pattern="${pkg_detail.tag}">
    27                         <hlm:tagSet refid="hg.tags.id${dollar}{refid}" />
    28                         <hlm:tagSet refid="hg.tags.id${dollar}{refid}" />
    28                     </hlm:latestTag>
    29                     </hlm:latestTag>
    29                 </hlm:update>
    30                 </hlm:update>
    30             </hlm:scm>
    31             </hlm:scm>
       
    32         
       
    33         </sequential>
       
    34     </target>
       
    35 
       
    36     <target name="sf-bom-info-${count}">
       
    37 
       
    38         <sequential>
    31             
    39             
    32             <!-- record info on source code repo/rev in BOM file  -->
    40             <!-- record info on source code repo/rev in BOM file  -->
    33             <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="sf.sourcesync.${count}.rev">
    41             <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="sf.sourcesync.${count}.rev">
    34                 <arg value="identify"/>
    42                 <arg value="identify"/>
    35                 <arg value="-n"/>
    43                 <arg value="-n"/>
    45                 <arg value="${pkg_detail.source},${pkg_detail.dst},${dollar}{sf.sourcesync.${count}.rev}:${dollar}{sf.sourcesync.${count}.checksum}"/>
    53                 <arg value="${pkg_detail.source},${pkg_detail.dst},${dollar}{sf.sourcesync.${count}.rev}:${dollar}{sf.sourcesync.${count}.checksum}"/>
    46             </exec>
    54             </exec>
    47         
    55         
    48         </sequential>
    56         </sequential>
    49     </target>
    57     </target>
    50     
    58 
       
    59 
    51     <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" />       
    60     <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" />       
    52     <#assign sync_list = "${sync_list}" + "<runtarget target=\"sf-prebuild-${count}\"/>\n"/>    
    61     <#assign sync_list = "${sync_list}" + "<runtarget target=\"sf-prebuild-${count}\"/>\n"/>       
       
    62     <#assign bom_list = "${bom_list}" + "<runtarget target=\"sf-bom-info-${count}\"/>\n"/>    
    53     <#assign count = count + 1 />
    63     <#assign count = count + 1 />
    54 
    64 
    55 </#list>
    65 </#list>
    56 
    66 
    57     <path id="system.definition.files">
    67     <path id="system.definition.files">
    63 
    73 
    64   <parallel>
    74   <parallel>
    65     ${sync_list}
    75     ${sync_list}
    66   </parallel>
    76   </parallel>
    67 
    77 
       
    78 
       
    79   ${bom_list}
       
    80 
    68 </target>
    81 </target>
    69 </project>
    82 </project>