common/templates/hg-prep.ant.xml.ftl
author Simon Howkins <simonh@symbian.org>
Fri, 03 Sep 2010 11:53:15 +0100
branchRCL_1
changeset 1248 508ecc9021d2
parent 0 571f289c60b8
permissions -rw-r--r--
Create RCL_1 branch, for work on releasing PDK 2.0.3 Rest of FBF seems to have moved on too far for S^2 to keep working :-( Still, that's what branches are for.

<?xml version="1.0"?>
<project name="hg-prep" default="all" xmlns:hlm="http://www.nokia.com/helium">
    <property environment="env"/>

    <taskdef name="scm" classname="com.nokia.helium.scm.ant.taskdefs.ScmTask" uri="http://www.nokia.com/helium" />
    <typedef name="latestTag" classname="com.nokia.helium.scm.ant.types.LatestTag" uri="http://www.nokia.com/helium" />
    <typedef name="tagSet" classname="com.nokia.helium.scm.ant.types.TagSet" uri="http://www.nokia.com/helium" />


    <target name="all">
    
    <parallel threadCount="${ant['threads']}">
    <#assign refid=0/>
<#list data as d>
        <sequential>
            <delete dir="${ant['build.drive']}${d.dst}" failonerror="false"/>
            <mkdir dir="${ant['build.drive']}${d.dst}"/>
            <hlm:scm verbose="true" scmUrl="scm:hg:${d.source}">
                <hlm:checkout basedir="${ant['build.drive']}${d.dst}"/>
        
                <hlm:tags basedir="${ant['build.drive']}${d.dst}" reference="hg.tags.id${refid}"/>
        
                <hlm:update basedir="${ant['build.drive']}${d.dst}">
                    <hlm:latestTag pattern="${d.tag}">
                        <hlm:tagSet refid="hg.tags.id${refid}" />
                    </hlm:latestTag>
                </hlm:update>
            </hlm:scm>
        </sequential>
        <#assign refid=refid + 1/>
</#list>
    </parallel>
    </target>
    
    <import file="${ant['helium.dir']}/helium.ant.xml"/>   
</project>