buildframework/helium/tools/logging/templates/db2xml.xml.ftl
changeset 646 a010554f8551
parent 645 b8d81fa19e7d
equal deleted inserted replaced
644:01667c882e63 646:a010554f8551
       
     1 <#--
       
     2 ============================================================================ 
       
     3 Name        : db2xml.xml.ftl 
       
     4 Part of     : Helium 
       
     5 
       
     6 Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     7 All rights reserved.
       
     8 This component and the accompanying materials are made available
       
     9 under the terms of the License "Eclipse Public License v1.0"
       
    10 which accompanies this distribution, and is available
       
    11 at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    12 
       
    13 Initial Contributors:
       
    14 Nokia Corporation - initial contribution.
       
    15 
       
    16 Contributors:
       
    17 
       
    18 Description:
       
    19 
       
    20 ============================================================================
       
    21 -->
       
    22 <#assign table_info = pp.loadData('com.nokia.helium.metadata.SQLFMPPLoader', "${dbPath}") >
       
    23 <?xml version="1.0" encoding="utf-8"?>
       
    24 <log filename="${log}">
       
    25 <build>
       
    26 
       
    27 <#list table_info['select * from metadata INNER JOIN logfiles ON logfiles.id=metadata.logfile_id INNER JOIN severity ON severity.id=metadata.severity_id where severity=\'ERROR\' and path like \'${r\'%\'}${log}\''] as recordentry >
       
    28 <message severity="error"><![CDATA[${recordentry['data']}]]></message>
       
    29 </#list>
       
    30 
       
    31 </build>
       
    32 </log>