buildframework/helium/tools/common/templates/diamonds/build_roms_diamonds.xml.ftl
changeset 628 7c4a911dc066
parent 588 c7c26511138f
child 645 b8d81fa19e7d
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
    22 
    22 
    23 <#include "diamonds_header.ftl">
    23 <#include "diamonds_header.ftl">
    24 
    24 
    25 <#assign db = pp.loadData('com.nokia.helium.metadata.ORMFMPPLoader', "${dbPath}") >
    25 <#assign db = pp.loadData('com.nokia.helium.metadata.ORMFMPPLoader', "${dbPath}") >
    26 
    26 
    27 <images>
    27     <images>
    28     <status></status>
    28         <#assign overallStatus = "ok">
    29     <#list db['native:java.lang.String']['select DISTINCT component.component from component where component.component like \'%.fpsx\''] as component>
    29         
    30     <image>
    30         <#list db['native:java.lang.String']['select DISTINCT component.component from component where component.component like \'%.fpsx\''] as component>
    31     
    31         <image>
    32         <#assign status = "ok">
    32             <#assign status = "ok">
    33         <#list db['jpa']['select m 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}\''] as m>
    33             <#list db['jpa']['select m from MetadataEntry m JOIN m.logFile as l JOIN m.severity as p JOIN m.component as c where p.severity=\'ERROR\' and c.component=\'${component}\''] as m>
    34         <#assign match = m.text?matches(".*?fpsx' - DOESN'T EXIST")>
    34             <#assign match = m.text?matches(".*?fpsx' - DOESN'T EXIST")>
    35         <#if match>
    35             <#if match>
    36         <#assign status = "failed">
    36             <#assign status = "failed">
    37         </#if>
    37             <#assign overallStatus = "failed">
       
    38             </#if>
       
    39             </#list>
       
    40             <status>${status}</status>
       
    41             
       
    42             <name>${component}</name>
       
    43             <hardware>N/A</hardware>
       
    44             <#assign type = component?matches("([^.]+)\\.fpsx")[0]>
       
    45             <type>${type?groups[1]}</type>
       
    46             <errors count="${db['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.logFile as l JOIN m.severity as p JOIN m.component as c where p.severity=\'ERROR\' and c.component=\'${component}\''][0]}">
       
    47                 <#list db['jpa']['select m from MetadataEntry m JOIN m.logFile as l JOIN m.severity as p JOIN m.component as c where p.severity=\'ERROR\' and c.component=\'${component}\''] as m>
       
    48                 <error>${m.text}</error>
       
    49                 </#list>
       
    50             </errors>
       
    51             <warnings count="${db['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.logFile as l JOIN m.severity as p JOIN m.component as c where p.severity=\'WARNING\' and c.component=\'${component}\''][0]}">
       
    52                 <#list db['jpa']['select m from MetadataEntry m JOIN m.logFile as l JOIN m.severity as p JOIN m.component as c where p.severity=\'WARNING\' and c.component=\'${component}\''] as m>
       
    53                 <warning>${m.text}</warning>
       
    54                 </#list>
       
    55             </warnings>
       
    56         </image>
    38         </#list>
    57         </#list>
    39         <status>${status}</status>
       
    40         
    58         
    41         <name>${component}</name>
    59         <status>${overallStatus}</status>
    42         <hardware>N/A</hardware>
    60     </images>
    43         <#assign type = component?matches("([^.]+)\\.fpsx")[0]>
       
    44         <type>${type?groups[1]}</type>
       
    45         <errors count="${db['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}\''][0]}">
       
    46             <#list db['jpa']['select m 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}\''] as m>
       
    47             <error>${m.text}</error>
       
    48             </#list>
       
    49         </errors>
       
    50         <warnings count="${db['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}\''][0]}">
       
    51             <#list db['jpa']['select m 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}\''] as m>
       
    52             <warning>${m.text}</warning>
       
    53             </#list>
       
    54         </warnings>
       
    55     </image>
       
    56     </#list>
       
    57 </images>
       
    58 
    61 
    59 <#include "diamonds_footer.ftl">
    62 <#include "diamonds_footer.ftl">
    60 
    63 
    61 
    64 
    62 
    65