common/templates/tag-hg-code.ant.xml.ftl
author dariosestito@L063522.prod.ad.symbian.intra
Mon, 30 Mar 2009 13:17:02 +0100
changeset 42 b6e2360f1ab4
parent 41 f137ddbb714d
child 54 24d7d3a8a2f2
permissions -rw-r--r--
Tag level should be "normal" otherwise the tags are not copied to the original repo
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
     1
<?xml version="1.0"?>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
     2
<project name="SF-TAG-HG-CODE" default="all" xmlns:hlm="http://www.nokia.com/helium">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
     3
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
     4
<#assign target_depends = "" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
     5
<#assign count = 0 />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
     6
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
     7
<#list data as pkg_detail>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
     8
    <target name="sf-tag-hg-code-${count}">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
     9
        <sequential>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    10
          <hlm:scm verbose="true" scmUrl="scm:hg:${pkg_detail.source}">
42
b6e2360f1ab4 Tag level should be "normal" otherwise the tags are not copied to the original repo
dariosestito@L063522.prod.ad.symbian.intra
parents: 41
diff changeset
    11
            <hlm:tag basedir="${ant['sf.spec.job.drive']}${pkg_detail.dst}" name="${ant['sf.tagafterbuild.tag']}" level="normal"/>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    12
          </hlm:scm>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    13
        </sequential>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    14
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    15
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    16
    <#if (count == 0) >
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    17
    				<#assign target_depends = "${target_depends}" + "sf-tag-hg-code-${count}" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    18
    </#if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    19
    <#if (count > 0) >
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    20
            <#assign target_depends ="${target_depends}" + ","+"sf-tag-hg-code-${count}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    21
    </#if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    22
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    23
    <#assign count = count + 1 />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    24
</#list>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    25
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    26
<target name="all" depends="${target_depends}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    27
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents:
diff changeset
    28
</project>