|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 ============================================================================ |
|
4 Name : synergy.ant.xml |
|
5 Part of : Helium |
|
6 |
|
7 Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
8 All rights reserved. |
|
9 This component and the accompanying materials are made available |
|
10 under the terms of the License "Eclipse Public License v1.0" |
|
11 which accompanies this distribution, and is available |
|
12 at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
13 |
|
14 Initial Contributors: |
|
15 Nokia Corporation - initial contribution. |
|
16 |
|
17 Contributors: |
|
18 |
|
19 Description: |
|
20 |
|
21 ============================================================================ |
|
22 --> |
|
23 <!--* @package publishing --> |
|
24 <project name="publish.synergy" xmlns:hlm="http://www.nokia.com/helium"> |
|
25 <description> |
|
26 Synergy publishing related targets |
|
27 </description> |
|
28 |
|
29 <!-- Validate all the inputs for the publish-tasks-to-folder target. --> |
|
30 <target name="publish-tasks-to-folder-check" if="publish.ccm.folder"> |
|
31 <condition property="do.publish-tasks-to-folder" value="true"> |
|
32 <available file="${temp.build.dir}/${build.id}_bom.xml" /> |
|
33 </condition> |
|
34 </target> |
|
35 |
|
36 <!-- Copies all the task found in the BOM into defined folder. --> |
|
37 <target name="publish-tasks-to-folder" depends="publish-tasks-to-folder-check" if="do.publish-tasks-to-folder"> |
|
38 <mkdir dir="${temp.build.dir}" /> |
|
39 <fmpp sourceFile="${helium.dir}/tools/common/templates/ido/task-publish.ant.xml.ftl" outputFile="${temp.build.dir}/task-publish.ant.xml"> |
|
40 <freemarkerLinks expandProperties="yes"> |
|
41 macro: ${helium.dir}/tools/common/templates/macro |
|
42 </freemarkerLinks> |
|
43 <data expandProperties="yes"> |
|
44 bom: xml(${temp.build.dir}/${build.id}_bom.xml) |
|
45 ant: antProperties() |
|
46 </data> |
|
47 </fmpp> |
|
48 <hlm:assertFileExists file="${temp.build.dir}/task-publish.ant.xml" /> |
|
49 <ant antfile="${temp.build.dir}/task-publish.ant.xml" dir="${build.drive}/" /> |
|
50 </target> |
|
51 |
|
52 <!-- Change team level release tag to program level release tag --> |
|
53 <target name="change-release-tag" if="teamlevel.ci.system"> |
|
54 <if> |
|
55 <isset property="ccm.cache.xml" /> |
|
56 <then> |
|
57 <hlm:createSessionMacro database="${ccm.database}" reference="releasetag.session" cache="${ccm.cache.xml}"/> |
|
58 </then> |
|
59 <else> |
|
60 <hlm:createSessionMacro database="${ccm.database}" reference="releasetag.session" /> |
|
61 </else> |
|
62 </if> |
|
63 <hlm:ccm verbose="false"> |
|
64 <hlm:sessionset refid="releasetag.session" /> |
|
65 <hlm:changereleasetag folder="${teamlevel.folder.number}" releasetag="${programlevel.release.tag}" /> |
|
66 </hlm:ccm> |
|
67 <if> |
|
68 <not> |
|
69 <isset property="ccm.cache.xml" /> |
|
70 </not> |
|
71 <then> |
|
72 <hlm:ccm verbose="false"> |
|
73 <hlm:sessionset refid="releasetag.session" /> |
|
74 <hlm:close /> |
|
75 </hlm:ccm> |
|
76 </then> |
|
77 </if> |
|
78 </target> |
|
79 |
|
80 </project> |