buildframework/helium/tools/metadata/metadata.ant.xml
changeset 2 39c28ec933dd
equal deleted inserted replaced
1:820b22e13ff1 2:39c28ec933dd
       
     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 <!--* @package framework -->
       
    24 <project name="metadata" xmlns:hlm="http://www.nokia.com/helium">
       
    25     <description>
       
    26     Metadata related ant macros and targets
       
    27     </description>
       
    28 
       
    29     <macrodef name="generateBuildStatus" uri="http://www.nokia.com/helium">
       
    30         <attribute name="output-dir" default="${build.signal.status.dir}"/>
       
    31         <attribute name="dbfile" default="${metadata.dbfile}" />
       
    32         <attribute name="file" />
       
    33         <sequential>
       
    34             <mkdir dir="@{output-dir}" />
       
    35             <var name="email.status.template" value="${build.status.email.template}" />
       
    36             <fmpp sourceFile="${helium.dir}/tools/common/templates/log/build_status_orm.xml.ftl"
       
    37                          outputfile="@{output-dir}/@{file}.status.xml">
       
    38                 <freemarkerLinks expandProperties="yes">
       
    39                     macro: ${helium.dir}/tools/common/templates/macro
       
    40                 </freemarkerLinks>
       
    41                 <data expandProperties="yes">
       
    42                     dbPath: @{dbfile}
       
    43                     logpath: @{file}
       
    44                     ant: antProperties()
       
    45                 </data>
       
    46             </fmpp>
       
    47             <fmpp sourceFile="${build.status.email.template}"
       
    48                          outputfile="@{output-dir}/@{file}.status.html">
       
    49                 <freemarkerLinks expandProperties="yes">
       
    50                     macro: ${helium.dir}/tools/common/templates/macro
       
    51                 </freemarkerLinks>
       
    52                 <data expandProperties="yes">
       
    53                     dbPath: @{dbfile}
       
    54                     logpath: @{file}
       
    55                     ant: antProperties()
       
    56                 </data>
       
    57             </fmpp>
       
    58         </sequential>
       
    59     </macrodef>
       
    60 </project>