|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 ============================================================================ |
|
4 Name : metadata.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 <project name="metadata" xmlns:hlm="http://www.nokia.com/helium"> |
|
24 <description> |
|
25 Metadata related ant macros and targets |
|
26 </description> |
|
27 |
|
28 <macrodef name="generateBuildStatus" uri="http://www.nokia.com/helium"> |
|
29 <attribute name="output-dir" default="${build.signal.status.dir}"/> |
|
30 <attribute name="dbfile" default="${metadata.dbfile}" /> |
|
31 <attribute name="file" /> |
|
32 <sequential> |
|
33 <mkdir dir="@{output-dir}" /> |
|
34 <fmpp sourceFile="${helium.dir}/tools/common/templates/log/build_status.xml.ftl" |
|
35 outputfile="@{output-dir}/@{file}.status.xml"> |
|
36 <freemarkerLinks expandProperties="yes"> |
|
37 macro: ${helium.dir}/tools/common/templates/macro |
|
38 </freemarkerLinks> |
|
39 <data expandProperties="yes"> |
|
40 dbPath: @{dbfile} |
|
41 logfile: @{file} |
|
42 ant: antProperties() |
|
43 </data> |
|
44 </fmpp> |
|
45 <fmpp sourceFile="${build.status.email.template}" |
|
46 outputfile="@{output-dir}/@{file}.status.html"> |
|
47 <freemarkerLinks expandProperties="yes"> |
|
48 macro: ${helium.dir}/tools/common/templates/macro |
|
49 </freemarkerLinks> |
|
50 <data expandProperties="yes"> |
|
51 dbPath: @{dbfile} |
|
52 logfile: @{file} |
|
53 ant: antProperties() |
|
54 </data> |
|
55 </fmpp> |
|
56 </sequential> |
|
57 </macrodef> |
|
58 </project> |