common/templates/source-spec.ant.xml.ftl
author Shabe Razvi <shaber@symbian.org>
Tue, 19 May 2009 17:40:43 +0100
changeset 102 c2478fad90aa
parent 68 c86f60d45216
child 163 fc4460f54beb
permissions -rw-r--r--
Fix populateziptemplate.pl to work with new repo structure
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
     1
<?xml version="1.0"?>
17
c677077df18c Fix FMPP template to allow multiple repositories
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 7
diff changeset
     2
<project name="SF-SOURCESPEC" default="all" xmlns:hlm="http://www.nokia.com/helium">
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
     3
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
     4
<#assign fileset = "" />
34
c10840c6fcbb Update Platform Config to build tools2 before tools - which must be run in single thread. Also update sync template to sync in parallel.
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 17
diff changeset
     5
<#assign sync_list = "" />
68
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
     6
<#assign bom_list  = "" />
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
     7
<#assign dollar = "$"/>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
     8
<#assign count = 0 />
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
     9
56
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 53
diff changeset
    10
    <!-- remove previous version of BOM file (if exists)  -->
52
4db6721a5a24 Adding removal of sources.csv before populating it
DarioS@UK-DarioS.symbian.int
parents: 51
diff changeset
    11
    <target name="reset-bom-sources-csv">
58
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 56
diff changeset
    12
        <delete file="${ant['build.drive']}/output/logs/BOM/sources.csv" quiet="true"/>
52
4db6721a5a24 Adding removal of sources.csv before populating it
DarioS@UK-DarioS.symbian.int
parents: 51
diff changeset
    13
    </target>
47
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 46
diff changeset
    14
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    15
<#list data as pkg_detail>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    16
    <target name="sf-prebuild-${count}">
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    17
        <#if (count > 0) >
17
c677077df18c Fix FMPP template to allow multiple repositories
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 7
diff changeset
    18
            <#assign fileset = "${fileset}"  />
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    19
        </#if>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    20
        <sequential>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    21
            <delete dir="${ant['build.drive']}${pkg_detail.dst}" failonerror="false"/>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    22
            <mkdir dir="${ant['build.drive']}${pkg_detail.dst}"/>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    23
            <hlm:scm verbose="true" scmUrl="scm:hg:${pkg_detail.source}">
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    24
                <hlm:checkout basedir="${ant['build.drive']}${pkg_detail.dst}"/>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    25
                <hlm:tags basedir="${ant['build.drive']}${pkg_detail.dst}" reference="hg.tags.id${dollar}{refid}"/>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    26
                <hlm:update basedir="${ant['build.drive']}${pkg_detail.dst}">
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    27
                    <hlm:latestTag pattern="${pkg_detail.tag}">
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    28
                        <hlm:tagSet refid="hg.tags.id${dollar}{refid}" />
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    29
                    </hlm:latestTag>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    30
                </hlm:update>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    31
            </hlm:scm>
68
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
    32
        
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
    33
        </sequential>
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
    34
    </target>
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
    35
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
    36
    <target name="sf-bom-info-${count}">
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
    37
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
    38
        <sequential>
47
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 46
diff changeset
    39
            
56
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 53
diff changeset
    40
            <!-- record info on source code repo/rev in BOM file  -->
47
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 46
diff changeset
    41
            <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="sf.sourcesync.${count}.rev">
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 46
diff changeset
    42
                <arg value="identify"/>
58
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 56
diff changeset
    43
                <arg value="-n"/>
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 56
diff changeset
    44
            </exec>
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 56
diff changeset
    45
            <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="sf.sourcesync.${count}.checksum">
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 56
diff changeset
    46
                <arg value="identify"/>
47
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 46
diff changeset
    47
                <arg value="-i"/>
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 46
diff changeset
    48
            </exec>
58
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 56
diff changeset
    49
            <echo message="dir ${ant['build.drive']}${pkg_detail.dst} : revision ${dollar}{sf.sourcesync.${count}.rev}:${dollar}{sf.sourcesync.${count}.checksum}"/>
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 56
diff changeset
    50
            <exec executable="cmd" output="${ant['build.drive']}/output/logs/BOM/sources.csv" append="true">
47
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 46
diff changeset
    51
                <arg value="/c"/>
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 46
diff changeset
    52
                <arg value="echo"/>
58
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 56
diff changeset
    53
                <arg value="${pkg_detail.source},${pkg_detail.dst},${dollar}{sf.sourcesync.${count}.rev}:${dollar}{sf.sourcesync.${count}.checksum}"/>
47
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 46
diff changeset
    54
            </exec>
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 46
diff changeset
    55
        
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    56
        </sequential>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    57
    </target>
68
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
    58
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
    59
34
c10840c6fcbb Update Platform Config to build tools2 before tools - which must be run in single thread. Also update sync template to sync in parallel.
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 17
diff changeset
    60
    <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" />       
68
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
    61
    <#assign sync_list = "${sync_list}" + "<runtarget target=\"sf-prebuild-${count}\"/>\n"/>       
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
    62
    <#assign bom_list = "${bom_list}" + "<runtarget target=\"sf-bom-info-${count}\"/>\n"/>    
17
c677077df18c Fix FMPP template to allow multiple repositories
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 7
diff changeset
    63
    <#assign count = count + 1 />
c677077df18c Fix FMPP template to allow multiple repositories
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 7
diff changeset
    64
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    65
</#list>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    66
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    67
    <path id="system.definition.files">
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    68
        <fileset dir="${dollar}{sf.common.config.dir}/sysdefs" includes="*.sysdef.xml"/>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    69
        ${fileset}
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    70
    </path>
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    71
62
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 58 34
diff changeset
    72
<target name="all" depends="reset-bom-sources-csv">
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    73
34
c10840c6fcbb Update Platform Config to build tools2 before tools - which must be run in single thread. Also update sync template to sync in parallel.
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 17
diff changeset
    74
  <parallel>
c10840c6fcbb Update Platform Config to build tools2 before tools - which must be run in single thread. Also update sync template to sync in parallel.
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 17
diff changeset
    75
    ${sync_list}
c10840c6fcbb Update Platform Config to build tools2 before tools - which must be run in single thread. Also update sync template to sync in parallel.
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 17
diff changeset
    76
  </parallel>
c10840c6fcbb Update Platform Config to build tools2 before tools - which must be run in single thread. Also update sync template to sync in parallel.
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 17
diff changeset
    77
68
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
    78
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
    79
  ${bom_list}
c86f60d45216 Make BOM identify thread safe
BuildAdmin@LON-ENGBUILD87
parents: 62
diff changeset
    80
34
c10840c6fcbb Update Platform Config to build tools2 before tools - which must be run in single thread. Also update sync template to sync in parallel.
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents: 17
diff changeset
    81
</target>
7
389e1e1f1583 Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff changeset
    82
</project>