buildframework/helium/tools/metadata/metadata.ant.xml
branchfix
changeset 395 5ad27ebafc22
parent 217 0f5e3a7fb6af
child 587 85df38eb4012
equal deleted inserted replaced
394:b6f8d38305f2 395:5ad27ebafc22
    18 
    18 
    19 Description:
    19 Description:
    20 
    20 
    21 ============================================================================
    21 ============================================================================
    22 -->
    22 -->
       
    23 <!--* @package framework -->
    23 <project name="metadata" xmlns:hlm="http://www.nokia.com/helium">
    24 <project name="metadata" xmlns:hlm="http://www.nokia.com/helium">
    24     <description>
    25     <description>
    25     Metadata related ant macros and targets
    26     Metadata related ant macros and targets
    26     </description>
    27     </description>
    27 
    28 
    29         <attribute name="output-dir" default="${build.signal.status.dir}"/>
    30         <attribute name="output-dir" default="${build.signal.status.dir}"/>
    30         <attribute name="dbfile" default="${metadata.dbfile}" />
    31         <attribute name="dbfile" default="${metadata.dbfile}" />
    31         <attribute name="file" />
    32         <attribute name="file" />
    32         <sequential>
    33         <sequential>
    33             <mkdir dir="@{output-dir}" />
    34             <mkdir dir="@{output-dir}" />
    34             <fmpp sourceFile="${helium.dir}/tools/common/templates/log/build_status.xml.ftl"
    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"
    35                          outputfile="@{output-dir}/@{file}.status.xml">
    37                          outputfile="@{output-dir}/@{file}.status.xml">
    36                 <freemarkerLinks expandProperties="yes">
    38                 <freemarkerLinks expandProperties="yes">
    37                     macro: ${helium.dir}/tools/common/templates/macro
    39                     macro: ${helium.dir}/tools/common/templates/macro
    38                 </freemarkerLinks>
    40                 </freemarkerLinks>
    39                 <data expandProperties="yes">
    41                 <data expandProperties="yes">
    40                     dbPath: @{dbfile}
    42                     dbPath: @{dbfile}
    41                     logfile: @{file}
    43                     logpath: @{file}
    42                     ant: antProperties()
    44                     ant: antProperties()
    43                 </data>
    45                 </data>
    44             </fmpp>
    46             </fmpp>
    45             <fmpp sourceFile="${build.status.email.template}"
    47             <fmpp sourceFile="${build.status.email.template}"
    46                          outputfile="@{output-dir}/@{file}.status.html">
    48                          outputfile="@{output-dir}/@{file}.status.html">
    47                 <freemarkerLinks expandProperties="yes">
    49                 <freemarkerLinks expandProperties="yes">
    48                     macro: ${helium.dir}/tools/common/templates/macro
    50                     macro: ${helium.dir}/tools/common/templates/macro
    49                 </freemarkerLinks>
    51                 </freemarkerLinks>
    50                 <data expandProperties="yes">
    52                 <data expandProperties="yes">
    51                     dbPath: @{dbfile}
    53                     dbPath: @{dbfile}
    52                     logfile: @{file}
    54                     logpath: @{file}
    53                     ant: antProperties()
    55                     ant: antProperties()
    54                 </data>
    56                 </data>
    55             </fmpp>
    57             </fmpp>
    56         </sequential>
    58         </sequential>
    57     </macrodef>
    59     </macrodef>