author | jascui |
Tue, 16 Nov 2010 15:54:07 +0800 | |
changeset 682 | 2c32f186fa1f |
parent 645 | b8d81fa19e7d |
permissions | -rw-r--r-- |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
2 |
<!-- |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
3 |
============================================================================ |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
4 |
Name : synergy.ant.xml |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
5 |
Part of : Helium |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
6 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
7 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
8 |
All rights reserved. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
9 |
This component and the accompanying materials are made available |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
10 |
under the terms of the License "Eclipse Public License v1.0" |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
11 |
which accompanies this distribution, and is available |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
12 |
at the URL "http://www.eclipse.org/legal/epl-v10.html". |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
13 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
14 |
Initial Contributors: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
15 |
Nokia Corporation - initial contribution. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
16 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
17 |
Contributors: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
18 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
19 |
Description: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
20 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
21 |
============================================================================ |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
22 |
--> |
217 | 23 |
<!--* @package publishing --> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
24 |
<project name="publish.synergy" xmlns:hlm="http://www.nokia.com/helium"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
25 |
<description> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
26 |
Synergy publishing related targets |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
27 |
</description> |
628 | 28 |
|
29 |
<!--* @property publish.task.to.folder.enabled |
|
30 |
Must be set to true if the completed tasks needs to be published into folder set using publish.ccm.folder. |
|
31 |
@type boolean |
|
32 |
@editable required |
|
33 |
@scope public |
|
34 |
@since 11.0 |
|
35 |
--> |
|
36 |
||
37 |
<!--* @property internal.publish.task.to.folder.enabled |
|
38 |
Will publish the tasks into synergy folder set using publish.ccm.folder |
|
39 |
@type boolean |
|
40 |
@scope private |
|
41 |
--> |
|
42 |
||
43 |
<!--* @property publish.ccm.folder |
|
44 |
Must be set to publish the completed tasks into synergy folder. |
|
45 |
@type string |
|
46 |
@editable required |
|
47 |
@scope public |
|
48 |
--> |
|
49 |
||
50 |
<!--* @property team.level.ci.enabled |
|
51 |
Must be set to true if need to change the synergy release tag in team level CI system. |
|
52 |
@type boolean |
|
53 |
@editable required |
|
54 |
@scope public |
|
55 |
@since 11.0 |
|
56 |
--> |
|
57 |
||
58 |
<!--* @property internal.team.level.ci.enabled |
|
59 |
Set to run the target which will change ther synergy release tag in team CI system if teamlevel.ci.enabled set to true. |
|
60 |
@type boolean |
|
61 |
@scope private |
|
62 |
--> |
|
63 |
||
64 |
<!--* @property teamlevel.ci.system |
|
65 |
Must be set to true if need to change the synergy release tag in team level CI system. - deprecated: Start using teamlevel.ci.enabled property. |
|
66 |
@type boolean |
|
67 |
@editable required |
|
68 |
@scope public |
|
69 |
@deprecated since 11.0 |
|
70 |
--> |
|
71 |
||
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
72 |
<!-- Validate all the inputs for the publish-tasks-to-folder target. --> |
628 | 73 |
<condition property="internal.publish.task.to.folder.enabled"> |
74 |
<or> |
|
75 |
<istrue value="${publish.task.to.folder.enabled}"/> |
|
76 |
<isset property="publish.ccm.folder"/> |
|
77 |
</or> |
|
78 |
</condition> |
|
79 |
||
80 |
<!-- Check is it a team level CI system. --> |
|
81 |
<condition property="internal.team.level.ci.enabled"> |
|
82 |
<or> |
|
83 |
<istrue value="${team.level.ci.enabled}"/> |
|
84 |
<isset property="teamlevel.ci.system"/> |
|
85 |
</or> |
|
86 |
</condition> |
|
87 |
||
88 |
||
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
89 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
90 |
<!-- Copies all the task found in the BOM into defined folder. --> |
628 | 91 |
<target name="publish-tasks-to-folder" if="internal.publish.task.to.folder.enabled"> |
92 |
<if> |
|
93 |
<available file="${build.log.dir}/${build.id}_bom.xml" /> |
|
94 |
<then> |
|
95 |
<mkdir dir="${temp.build.dir}" /> |
|
645 | 96 |
<fmpp sourceFile="${helium.dir}/tools/publish/templates/task-publish.ant.xml.ftl" outputFile="${temp.build.dir}/task-publish.ant.xml"> |
628 | 97 |
<freemarkerLinks expandProperties="yes"> |
98 |
macro: ${helium.dir}/tools/common/templates/macro |
|
99 |
</freemarkerLinks> |
|
100 |
<data expandProperties="yes"> |
|
101 |
bom: xml(${build.log.dir}/${build.id}_bom.xml) |
|
102 |
ant: antProperties() |
|
103 |
</data> |
|
104 |
</fmpp> |
|
105 |
<hlm:assertFileExists file="${temp.build.dir}/task-publish.ant.xml" /> |
|
106 |
<ant antfile="${temp.build.dir}/task-publish.ant.xml" dir="${build.drive}/" /> |
|
107 |
</then> |
|
108 |
<else> |
|
109 |
<echo>Skipped because file ${build.log.dir}/${build.id}_bom.xml not available.</echo> |
|
110 |
</else> |
|
111 |
</if> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
112 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
113 |
|
587 | 114 |
<!--* @property ccm.cache.xml |
115 |
Location of the cache.xml file which enables global synergy sessions. |
|
116 |
@type string |
|
117 |
@editable required |
|
118 |
@scope public |
|
119 |
--> |
|
120 |
||
628 | 121 |
<!-- |
122 |
Synergy role to use while doing the update of release tag. |
|
123 |
@type string |
|
124 |
@editable required |
|
125 |
@scope public |
|
126 |
--> |
|
127 |
<property name="change.release.tag.role" value="build_mgr" /> |
|
128 |
||
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
129 |
<!-- Change team level release tag to program level release tag --> |
628 | 130 |
<target name="change-release-tag" if="internal.team.level.ci.enabled"> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
131 |
<if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
132 |
<isset property="ccm.cache.xml" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
133 |
<then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
134 |
<hlm:createSessionMacro database="${ccm.database}" reference="releasetag.session" cache="${ccm.cache.xml}"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
135 |
</then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
136 |
<else> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
137 |
<hlm:createSessionMacro database="${ccm.database}" reference="releasetag.session" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
138 |
</else> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
139 |
</if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
140 |
<hlm:ccm verbose="false"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
141 |
<hlm:sessionset refid="releasetag.session" /> |
628 | 142 |
<hlm:role role="${change.release.tag.role}" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
143 |
<hlm:changereleasetag folder="${teamlevel.folder.number}" releasetag="${programlevel.release.tag}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
144 |
</hlm:ccm> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
145 |
<if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
146 |
<not> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
147 |
<isset property="ccm.cache.xml" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
148 |
</not> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
149 |
<then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
150 |
<hlm:ccm verbose="false"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
151 |
<hlm:sessionset refid="releasetag.session" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
152 |
<hlm:close /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
153 |
</hlm:ccm> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
154 |
</then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
155 |
</if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
156 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
157 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
158 |
</project> |