buildframework/helium/tools/relnotes/templates/errors.csv.ftl
author Richard Taylor <richard.i.taylor@nokia.com>
Tue, 04 May 2010 12:11:13 +0100
branchwip
changeset 508 8ac72bc37dd6
parent 217 0f5e3a7fb6af
permissions -rw-r--r--
merge from team wip
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     1
<#--
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     2
============================================================================ 
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     3
Name        : error.csv.ftl 
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     4
Part of     : Helium 
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     5
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     6
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     7
All rights reserved.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     8
This component and the accompanying materials are made available
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     9
under the terms of the License "Eclipse Public License v1.0"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    10
which accompanies this distribution, and is available
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    11
at the URL "http://www.eclipse.org/legal/epl-v10.html".
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    12
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    13
Initial Contributors:
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    14
Nokia Corporation - initial contribution.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    15
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    16
Contributors:
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    17
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    18
Description:
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    19
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    20
============================================================================
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    21
-->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    22
Component,Errors,Warnings
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    23
<#assign table_info = pp.loadData('com.nokia.helium.metadata.SQLFMPPLoader', "${dbPath}") >
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    24
<#assign error_table = table_info['select *
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    25
FROM ((SELECT data.component AS ecomponent, count(data.line_number) AS ecount
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    26
FROM  (SELECT * from component LEFT OUTER JOIN metadata ON component.id=metadata.component_id) AS data, logfiles, priority
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    27
WHERE logfiles.id=data.logPath_id and logfiles.path like \'%_compile.log\' and priority.id=data.priority_id and priority.priority=\'ERROR\'
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    28
GROUP BY data.component) AS error LEFT OUTER JOIN (SELECT dataw.component AS wcomponent, count(dataw.line_number) AS wcount
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    29
FROM  (SELECT * from component LEFT OUTER JOIN metadata ON component.id=metadata.component_id) AS dataw, logfiles, priority
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    30
WHERE logfiles.id=dataw.logPath_id and logfiles.path like \'%_compile.log\' and priority.id=dataw.priority_id and priority.priority=\'WARNING\'
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    31
GROUP BY dataw.component) AS warning ON error.ecomponent=warning.wcomponent)']>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    32
<#list error_table as row>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    33
${row['ecomponent']},${row['ecount']},${row['wcount']}
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    34
</#list>