common/templates/push-hg-tags.ant.xml.ftl
author Simon Howkins <simonh@symbian.org>
Thu, 10 Jun 2010 14:37:23 +0100
changeset 1084 abefe2962232
permissions -rw-r--r--
Correct handling of tag name and changeset author in sf-tag-hg-code Addition of sf-push-hg-tags and associated template file, for pushing the tags created in sf-tag-hg-code back out to the MCL. Minor whitespace rationalisation.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1084
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     1
<?xml version="1.0"?>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     2
<project name="SF-TAG-HG-CODE" default="all" xmlns:hlm="http://www.nokia.com/helium">
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     3
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     4
	<#assign dollar = "$"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     5
	
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     6
	<#assign target_depends = "" />
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     7
	<#assign count = 0 />
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     8
	
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     9
	<#list data as pkg_detail>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    10
		<target name="sf-push-hg-tag-${count}">
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    11
			<!-- Work out the URL of the web *MCL* -->
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    12
			<propertyregex property="mcl.${count}" input="${pkg_detail.source}" regexp="(developer.symbian.org)/(oss|sfl)/FCL/(sf|sftools)" casesensitive="false" replace="\1/\2/MCL/\3" defaultValue="${pkg_detail.source}"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    13
			<exec executable="hg" dir="${ant['build.drive']}/tagging${pkg_detail.dst}" logError="true">
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    14
				<arg value="push"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    15
				<arg value="--force"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    16
				<arg value="--config"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    17
				<arg value="auth.fbf1.prefix=https://developer.symbian.org/"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    18
				<arg value="--config"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    19
				<arg value="auth.fbf1.username=${dollar}{sf.symbian.account.username}"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    20
				<arg value="--config"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    21
				<arg value="auth.fbf1.password=${dollar}{sf.symbian.account.password}"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    22
				<arg value="--config"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    23
				<arg value="auth.fbf2.prefix=http://developer.symbian.org/"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    24
				<arg value="--config"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    25
				<arg value="auth.fbf2.username=${dollar}{sf.symbian.account.username}"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    26
				<arg value="--config"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    27
				<arg value="auth.fbf2.password=${dollar}{sf.symbian.account.password}"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    28
				<arg value="--rev"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    29
				<arg value="TAGS"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    30
				<arg value="${dollar}{mcl.${count}}"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    31
			</exec>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    32
		</target>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    33
		
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    34
		<#if (count > 0) >
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    35
			<#assign target_depends ="${target_depends}" + ", "/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    36
		</#if>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    37
		<#assign target_depends = "${target_depends}" + "sf-push-hg-tag-${count}" />
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    38
		
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    39
		<#assign count = count + 1 />
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    40
	</#list>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    41
	
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    42
	<target name="all" depends="${target_depends}"/>
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    43
abefe2962232 Correct handling of tag name and changeset author in sf-tag-hg-code
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    44
</project>