buildframework/helium/tools/common/templates/diamonds/faults_metadata_orm.ftl
author wbernard
Thu, 22 Jul 2010 17:08:43 +0300
branchhelium-9.0
changeset 618 df88fead2976
parent 587 85df38eb4012
permissions -rw-r--r--
helium_9.0.5-4399343f4f50
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
============================================================================ 
618
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
     3
Name        : faults_metadata_orm.ftl 
217
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
<#include "diamonds_header.ftl"> 
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    23
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    24
<#setting number_format="0">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    25
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    26
    <#assign table_info = pp.loadData('com.nokia.helium.metadata.ORMFMPPLoader',
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    27
        "${dbPath}") >
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    28
    <faults>
618
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
    29
        <total severity="error">${table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.priority as p JOIN m.logFile as l where LOWER(l.path) like \'%\\_compile.log\' ESCAPE \'\\\' and LOWER(l.path) not like \'%\\_clean\\_%compile.log\' ESCAPE \'\\\' and p.priority = \'ERROR\''][0]
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
    30
        + table_info['jpasingle']['select Count(w.id) from WhatLogEntry w JOIN w.component as c JOIN c.logFile as l where LOWER(l.path) like \'%\\_compile.log\' ESCAPE \'\\\' and LOWER(l.path) not like \'%\\_clean\\_%compile.log\' ESCAPE \'\\\' and w.missing = \'true\''][0]}</total>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
    31
        <total severity="warning">${table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.priority as p JOIN m.logFile as l where LOWER(l.path) like \'%\\_compile.log\' ESCAPE \'\\\' and LOWER(l.path) not like \'%\\_clean\\_%compile.log\' ESCAPE \'\\\' and p.priority = \'WARNING\''][0]}</total>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
    32
        <total severity="warning_rvct_other">${table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.priority as p JOIN m.logFile as l where LOWER(l.path) like \'%\\_compile.log\' ESCAPE \'\\\' and LOWER(l.path) not like \'%\\_clean\\_%compile.log\' ESCAPE \'\\\' and UPPER(p.priority) = \'WARNING\''][0]}</total>
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    33
        <!-- todo update to calculate the correct value -->
618
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
    34
        <total severity="warning_rvct_bad">${table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.priority as p JOIN m.logFile as l where LOWER(l.path) like \'%\\_compile.log\' ESCAPE \'\\\' and LOWER(l.path) not like \'%\\_clean\\_%compile.log\' ESCAPE \'\\\' and UPPER(p.priority) = \'REMARK\''][0]}</total>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
    35
    <#list table_info['native:java.lang.String']['select DISTINCT component.component from component INNER JOIN logfile ON logfile.logpath_id=component.logpath_id where logfile.path like \'%_compile.log\' and logfile.path not like \'%\\_clean\\_%compile.log\''] as component>
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    36
        <component>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    37
            <name>${component}</name>
618
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
    38
            <total severity="error">${table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.logFile as l JOIN m.priority as p JOIN m.component as c where UPPER(p.priority)=\'ERROR\' and c.component=\'${component}\' and LOWER(l.path) like \'%\\_compile.log\' ESCAPE \'\\\' and LOWER(l.path) not like \'%\\_clean\\_%compile.log\' ESCAPE \'\\\''][0]
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
    39
            + table_info['jpasingle']['select Count(w.id) from WhatLogEntry w JOIN w.component as c JOIN c.logFile as l where c.component=\'${component}\' and LOWER(l.path) like \'%\\_compile.log\' ESCAPE \'\\\' and LOWER(l.path) not like \'%\\_clean\\_%compile.log\' ESCAPE \'\\\' and w.missing = \'true\''][0]}</total>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
    40
            <total severity="warning">${table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.logFile as l JOIN m.priority as p JOIN m.component as c where UPPER(p.priority)=\'WARNING\' and c.component=\'${component}\' and LOWER(l.path) like \'%\\_compile.log\' ESCAPE \'\\\' and LOWER(l.path) not like \'%\\_clean\\_%compile.log\' ESCAPE \'\\\''][0]}</total>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
    41
            <total severity="critical">${table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.logFile as l JOIN m.priority as p JOIN m.component as c where UPPER(p.priority)=\'REMARK\' and c.component=\'${component}\' and LOWER(l.path) like \'%\\_compile.log\' ESCAPE \'\\\' and LOWER(l.path) not like \'%\\_clean\\_%compile.log\' ESCAPE \'\\\''][0]}</total>
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    42
        </component>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    43
    </#list>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    44
    </faults>
618
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
    45
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
    46
    <!-- all components -->
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    47
    <components>
618
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
    48
    <#list table_info['native:java.lang.String']['select DISTINCT component.component from component INNER JOIN logfile ON logfile.logpath_id=component.logpath_id where logfile.path like \'%_compile.log\' and logfile.path not like \'%\\_clean\\_%compile.log\''] as component>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    49
        <component>${component}</component>
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    50
    </#list>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    51
    </components>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    52
<#include "diamonds_footer.ftl">