217
|
1 |
<#--
|
|
2 |
============================================================================
|
|
3 |
Name : email.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 |
<head>
|
|
26 |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
|
|
27 |
<title>
|
|
28 |
Build result e-mail from ${ant["env.COMPUTERNAME"]}.
|
|
29 |
</title>
|
|
30 |
<style type="text/css">
|
|
31 |
body{font-family:Verdana; font-size:10pt; line-height:1.1em; padding: 10px 10px; background-color:#E4F0F4;}
|
|
32 |
h1{
|
|
33 |
font-size:14pt;
|
|
34 |
color:#000;
|
|
35 |
padding: 20px 15px;
|
|
36 |
margin:0;
|
|
37 |
}
|
|
38 |
h2{font-size:12pt;}
|
|
39 |
h5{
|
|
40 |
font-size:10pt;
|
|
41 |
background-color:#8495BA;
|
|
42 |
color:#fff;
|
|
43 |
heigth:20pt;
|
|
44 |
padding: 5px 15px;
|
|
45 |
border-left:2px solid #5A6FA0;
|
|
46 |
border-bottom:2px solid #5A6FA0;
|
|
47 |
border-top:2px solid #98A6C6;
|
|
48 |
border-right:2px solid #98A6C6;
|
|
49 |
margin:0;
|
|
50 |
}
|
|
51 |
|
|
52 |
|
|
53 |
p {
|
|
54 |
font-size:10pt;
|
|
55 |
padding: 0em 1em 1em 1em;
|
|
56 |
margin: 0 1em 0.5em 1em;
|
|
57 |
border-right:1px solid #5A6FA0;
|
|
58 |
border-top:0;
|
|
59 |
border-bottom:1px solid #98A6C6;
|
|
60 |
border-left:1px solid #98A6C6;
|
|
61 |
background-color:#CDE4EB;
|
|
62 |
white-space:normal;
|
|
63 |
}
|
|
64 |
|
|
65 |
.data{color:#00F;}
|
|
66 |
.okmessage{color:#24A22D;font-weight:bold; display:block; margin-bottom: 1em;padding-top: 1em;}
|
|
67 |
.errormessage{color:#F00;font-weight:bold; display:block; margin-bottom: 1em;padding-top: 1em;}
|
|
68 |
|
|
69 |
span.items{text-indent:-1em; padding-left: 1em; display:block; word-wrap:normal;}
|
|
70 |
|
|
71 |
span.bold{font-weight:bold; display:block; padding: 1em 0;}
|
|
72 |
p.maintext{padding-top: 1em;}
|
|
73 |
p.logfolder{color:#000;font-weight:bold; padding-top: 1em;}
|
|
74 |
p.distrib{font-weight:bold;}
|
|
75 |
|
|
76 |
|
|
77 |
a:link,a:visited{color:#00E;}
|
|
78 |
|
|
79 |
</style>
|
|
80 |
</head>
|
|
81 |
<body>
|
|
82 |
<!-- The title -->
|
|
83 |
<div id="buildname">
|
|
84 |
<h1>This is an e-mail notification that a build has been completed on ${ant["env.COMPUTERNAME"]}</h1>
|
|
85 |
</div>
|
|
86 |
|
|
87 |
<#assign table_info = pp.loadData('com.nokia.helium.metadata.ORMFMPPLoader',
|
|
88 |
"${dbPath}") >
|
|
89 |
|
|
90 |
<#assign convertedLogFile = "${logpath}"?replace("\\","/")>
|
628
|
91 |
<#list table_info['jpa']['select l from LogFile l where LOWER(l.path)=\'${convertedLogFile?lower_case}\''] as logfile>
|
217
|
92 |
|
|
93 |
|
628
|
94 |
<#assign error_count = table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.severity as p where m.logFileId=${logfile.id} and p.severity=\'ERROR\''][0]>
|
217
|
95 |
<!-- section -->
|
|
96 |
<#macro create_section title type>
|
|
97 |
<div id="foldername">
|
|
98 |
<h5>${title}</h5>
|
|
99 |
<p class="maintext">
|
|
100 |
<!-- content span -->
|
|
101 |
<span class="${type}"><#nested></span>
|
|
102 |
</p>
|
|
103 |
</div>
|
|
104 |
</#macro>
|
|
105 |
<#if (error_count > 0)>
|
|
106 |
<span class="errormessage">
|
|
107 |
${logfile.path}...FAIL<br/>
|
628
|
108 |
<#list table_info['jpa']['select e from MetadataEntry e JOIN e.severity s where s.severity=\'ERROR\' and e.logFileId=${logfile.id}'] as entry >
|
217
|
109 |
<ul>
|
|
110 |
${entry.text}<br/>
|
|
111 |
</ul>
|
587
|
112 |
</#list>
|
217
|
113 |
</span>
|
|
114 |
<#else>
|
|
115 |
<span class="okmessage">${logfile.path}...OK<br/></span>
|
|
116 |
</#if>
|
628
|
117 |
</#list>
|
217
|
118 |
</body>
|
|
119 |
</html> |