author | DarioS@UK-DarioS.symbian.int |
Thu, 09 Apr 2009 11:14:30 +0100 | |
changeset 46 | 68c06bb4fbe2 |
parent 43 | e782ed26b791 |
child 48 | f5faa19dd3ed |
permissions | -rw-r--r-- |
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 = "" /> |
43
e782ed26b791
Targets must be separated by commas
DarioS@UK-DarioS.symbian.int
parents:
42
diff
changeset
|
5 |
<#assign target_depends = "" /> |
7
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
6 |
<#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
|
7 |
<#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
|
8 |
|
46
68c06bb4fbe2
Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents:
43
diff
changeset
|
9 |
<!-- remove previous version of BOM file (if exists) --> |
42
4db6721a5a24
Adding removal of sources.csv before populating it
DarioS@UK-DarioS.symbian.int
parents:
41
diff
changeset
|
10 |
<target name="reset-bom-sources-csv"> |
4db6721a5a24
Adding removal of sources.csv before populating it
DarioS@UK-DarioS.symbian.int
parents:
41
diff
changeset
|
11 |
<delete file="${ant['build.drive']}/output/BOM/sources.csv" quiet="true"/> |
4db6721a5a24
Adding removal of sources.csv before populating it
DarioS@UK-DarioS.symbian.int
parents:
41
diff
changeset
|
12 |
</target> |
37
d835e951a925
New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents:
36
diff
changeset
|
13 |
|
7
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
14 |
<#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
|
15 |
<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
|
16 |
<#if (count > 0) > |
17
c677077df18c
Fix FMPP template to allow multiple repositories
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
7
diff
changeset
|
17 |
<#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
|
18 |
</#if> |
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
19 |
<sequential> |
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
20 |
<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
|
21 |
<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
|
22 |
<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
|
23 |
<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
|
24 |
<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
|
25 |
<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
|
26 |
<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
|
27 |
<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
|
28 |
</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
|
29 |
</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
|
30 |
</hlm:scm> |
37
d835e951a925
New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents:
36
diff
changeset
|
31 |
|
46
68c06bb4fbe2
Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents:
43
diff
changeset
|
32 |
<!-- record info on source code repo/rev in BOM file --> |
37
d835e951a925
New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents:
36
diff
changeset
|
33 |
<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:
36
diff
changeset
|
34 |
<arg value="identify"/> |
d835e951a925
New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents:
36
diff
changeset
|
35 |
<arg value="-i"/> |
d835e951a925
New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents:
36
diff
changeset
|
36 |
</exec> |
38 | 37 |
<echo message="dir ${ant['build.drive']}${pkg_detail.dst} : revision ${dollar}{sf.sourcesync.${count}.rev}"/> |
41 | 38 |
<exec executable="cmd" output="${ant['build.drive']}/output/BOM/sources.csv" append="true"> |
37
d835e951a925
New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents:
36
diff
changeset
|
39 |
<arg value="/c"/> |
d835e951a925
New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents:
36
diff
changeset
|
40 |
<arg value="echo"/> |
38 | 41 |
<arg value="${pkg_detail.source},${pkg_detail.dst},${dollar}{sf.sourcesync.${count}.rev}"/> |
37
d835e951a925
New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents:
36
diff
changeset
|
42 |
</exec> |
d835e951a925
New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents:
36
diff
changeset
|
43 |
|
7
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
44 |
</sequential> |
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
45 |
</target> |
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
46 |
<#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" /> |
17
c677077df18c
Fix FMPP template to allow multiple repositories
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
7
diff
changeset
|
47 |
|
c677077df18c
Fix FMPP template to allow multiple repositories
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
7
diff
changeset
|
48 |
<#if (count == 0) > |
43
e782ed26b791
Targets must be separated by commas
DarioS@UK-DarioS.symbian.int
parents:
42
diff
changeset
|
49 |
<#assign target_depends = "reset-bom-sources-csv," + "sf-prebuild-${count}" /> |
17
c677077df18c
Fix FMPP template to allow multiple repositories
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
7
diff
changeset
|
50 |
</#if> |
c677077df18c
Fix FMPP template to allow multiple repositories
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
7
diff
changeset
|
51 |
<#if (count > 0) > |
43
e782ed26b791
Targets must be separated by commas
DarioS@UK-DarioS.symbian.int
parents:
42
diff
changeset
|
52 |
<#assign target_depends ="${target_depends}," + "sf-prebuild-${count}"/> |
17
c677077df18c
Fix FMPP template to allow multiple repositories
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
7
diff
changeset
|
53 |
</#if> |
c677077df18c
Fix FMPP template to allow multiple repositories
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
7
diff
changeset
|
54 |
|
c677077df18c
Fix FMPP template to allow multiple repositories
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
7
diff
changeset
|
55 |
<#assign count = count + 1 /> |
c677077df18c
Fix FMPP template to allow multiple repositories
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
7
diff
changeset
|
56 |
|
7
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
57 |
</#list> |
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
58 |
|
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
59 |
<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
|
60 |
<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
|
61 |
${fileset} |
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
62 |
</path> |
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
63 |
|
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
64 |
<target name="all" depends="${target_depends}"/> |
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
65 |
|
389e1e1f1583
Rename and move of generated source sync xml and also tidy up
shaberazvi@LON-ENGBUILD88.prod.ad.symbian.intra
parents:
diff
changeset
|
66 |
</project> |