templates/hg-pkg-build.ant.xml.ftl
author shaberazvi@L063442.prod.ad.symbian.intra
Wed, 04 Mar 2009 14:57:09 +0000
changeset 2 72b77c4ee224
permissions -rw-r--r--
Add new bootstrap properties and sysdef template
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
     1
<?xml version="1.0"?>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
     2
<project name="hg-build-gen-xml" default="all" xmlns:hlm="http://www.nokia.com/helium">
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
     3
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
     4
<#assign fileset = "" />
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
     5
<#assign target_depends = "" />
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
     6
<#assign dollar = "$"/>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
     7
<#assign count = 0 />
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
     8
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
     9
<#list data as pkg_detail>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    10
    <target name="sf-prebuild-${count}">
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    11
        <#if (count > 0) >
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    12
            <#assign fileset = "${fileset}" + "," />
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    13
        </#if>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    14
        <sequential>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    15
            <delete dir="${ant['build.drive']}${pkg_detail.dst}" failonerror="false"/>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    16
            <mkdir dir="${ant['build.drive']}${pkg_detail.dst}"/>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    17
            <hlm:scm verbose="true" scmUrl="scm:hg:${pkg_detail.source}">
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    18
                <hlm:checkout basedir="${ant['build.drive']}${pkg_detail.dst}"/>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    19
                <hlm:tags basedir="${ant['build.drive']}${pkg_detail.dst}" reference="hg.tags.id${dollar}{refid}"/>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    20
                <hlm:update basedir="${ant['build.drive']}${pkg_detail.dst}">
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    21
                    <hlm:latestTag pattern="${pkg_detail.tag}">
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    22
                        <hlm:tagSet refid="hg.tags.id${dollar}{refid}" />
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    23
                    </hlm:latestTag>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    24
                </hlm:update>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    25
            </hlm:scm>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    26
        </sequential>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    27
    </target>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    28
    <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" />
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    29
    <#assign target_depends = "${target_depends}" + "sf-prebuild-${count}" />
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    30
    <#assign count = "${count}" + 1 />
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    31
</#list>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    32
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    33
    <path id="system.definition.files">
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    34
        <fileset dir="${dollar}{sf.common.config.dir}/sysdefs" includes="*.sysdef.xml"/>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    35
        ${fileset}
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    36
    </path>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    37
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    38
<target name="all" depends="${target_depends}"/>
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    39
72b77c4ee224 Add new bootstrap properties and sysdef template
shaberazvi@L063442.prod.ad.symbian.intra
parents:
diff changeset
    40
</project>