217
|
1 |
<#--
|
|
2 |
============================================================================
|
|
3 |
Name : summary.html.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 |
<?xml version="1.0" encoding="utf-8"?>
|
|
23 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
24 |
<html>
|
|
25 |
|
|
26 |
|
|
27 |
<#include "/@macro/logger/logger.ftl"/>
|
|
28 |
|
|
29 |
<#assign table_info = pp.loadData('com.nokia.helium.metadata.ORMFMPPLoader',
|
|
30 |
"${dbPath}") >
|
|
31 |
|
|
32 |
<head>
|
|
33 |
<title>
|
|
34 |
<#if loginfo?? >
|
|
35 |
<#assign mykey=loginfo.info.id>
|
|
36 |
<#if (conv[mykey])?exists>
|
|
37 |
${loginfo.info.id}
|
|
38 |
</#if>
|
|
39 |
build summary</title>
|
|
40 |
<@helium_logger_html_head/>
|
|
41 |
</head>
|
|
42 |
</#if>
|
|
43 |
<body>
|
|
44 |
|
|
45 |
|
|
46 |
<!--
|
|
47 |
Processing the Helium log summary.
|
|
48 |
-->
|
|
49 |
<#macro logentry text, severity>
|
|
50 |
<#assign conv={"error": "error", "warning": "warning"}>
|
|
51 |
<#if (conv['${severity}'])?exists>
|
|
52 |
<@helium_logger_print type="${conv[\"${severity}\"]}">${text}</@helium_logger_print>
|
|
53 |
<#else>
|
|
54 |
<@helium_logger_print type="">${text}</@helium_logger_print>
|
|
55 |
</#if>
|
|
56 |
</#macro>
|
|
57 |
|
628
|
58 |
<#macro logfile_severity logname, severity, count, helium_node_id>
|
|
59 |
<@helium_message_box nodeid="${helium_node_id}" type="${severity}" count="${count}"?number />
|
217
|
60 |
</#macro>
|
|
61 |
|
|
62 |
|
628
|
63 |
<#macro logfile_entry_detail text, severity, helium_node_id>
|
|
64 |
<@logentry "${text}", "${severity?lower_case}" />
|
217
|
65 |
</#macro>
|
|
66 |
|
|
67 |
<!-- Call the macros to render the log contents. -->
|
|
68 |
<#assign mykey=loginfo>
|
|
69 |
<#if (conv[mykey])?exists>
|
|
70 |
<@helium_logger_header title="${loginfo.info.id} build"/>
|
|
71 |
|
|
72 |
<@helium_logger_content title="Build overview">
|
|
73 |
Time started: ${loginfo.info.startTime}<br/>
|
|
74 |
Build machine: ${loginfo.info.machine}<br/>
|
|
75 |
Is published?: ${loginfo.info.publish.status}<br/>
|
|
76 |
<#if loginfo.info.publish.status?string == true?string>
|
|
77 |
Published location: ${loginfo.info.publish.location}</br>
|
|
78 |
</#if>
|
|
79 |
</@helium_logger_content>
|
|
80 |
</#if>
|
|
81 |
|
|
82 |
<@helium_logger_content title="Errors and warnings details">
|
|
83 |
<#list table_info['jpa']['select l from LogFile l'] as logentry>
|
|
84 |
<#assign helium_node_id = helium_node_id + 1>
|
|
85 |
<#-- -->
|
|
86 |
<@helium_logger_node_head nodeid="${helium_node_id}" title="${logentry.path}">
|
628
|
87 |
<#list table_info['jpa']['select p from Severity p where p.severity not like \'INFO\''] as severity>
|
|
88 |
<#assign count=table_info['jpasingle']['select Count(m.id) from MetadataEntry m where m.severityId=${severity.id} and m.logFileId=${logentry.id}'][0]>
|
|
89 |
<@logfile_severity "${logentry.path}", "${severity.severity?lower_case}",
|
217
|
90 |
"${count}",
|
|
91 |
"${helium_node_id}" />
|
|
92 |
</#list>
|
|
93 |
</@helium_logger_node_head>
|
|
94 |
<@helium_logger_node_content nodeid="${helium_node_id}">
|
628
|
95 |
<#list table_info['jpa']['select c from Component c where c.logFileId=${logentry.id}'] as component>
|
217
|
96 |
<#assign helium_node_id = helium_node_id + 1>
|
|
97 |
<@helium_logger_node_head nodeid="${helium_node_id}" title="${component.component}">
|
628
|
98 |
<#list table_info['jpa']['select p from Severity p where p.severity not like \'INFO\''] as severity>
|
|
99 |
<@logfile_severity "${component.id}", "${severity.severity?lower_case}",
|
|
100 |
table_info['jpasingle']['select Count(m.id) from MetadataEntry m where m.severityId=${severity.id} and m.componentId=${component.id}'][0],
|
217
|
101 |
"${helium_node_id}" />
|
|
102 |
</#list>
|
|
103 |
</@helium_logger_node_head>
|
|
104 |
<@helium_logger_node_content nodeid="${helium_node_id}">
|
628
|
105 |
<#list table_info['jpa']['select p from Severity p'] as severity>
|
|
106 |
<#list table_info['jpa']['select m from MetadataEntry m where m.componentId=${component.id} and m.severityId=${severity.id}'] as entry>
|
217
|
107 |
<#if entry.text??>
|
628
|
108 |
<@logfile_entry_detail "${entry.text}", "${severity.severity?lower_case}", "${helium_node_id}" />
|
217
|
109 |
</#if>
|
|
110 |
</#list>
|
|
111 |
</#list>
|
|
112 |
</@helium_logger_node_content>
|
|
113 |
</#list>
|
|
114 |
</@helium_logger_node_content>
|
|
115 |
</#list>
|
|
116 |
</@helium_logger_content>
|
|
117 |
</body>
|
|
118 |
</html>
|