buildframework/helium/tools/preparation/bom/bom.html.ftl
changeset 645 b8d81fa19e7d
parent 643 27cf35f95864
child 646 a010554f8551
child 648 d5a8d436d33b
equal deleted inserted replaced
643:27cf35f95864 645:b8d81fa19e7d
     1 <#--
       
     2 ============================================================================ 
       
     3 Name        : bom.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     <#include "/@macro/logger/logger.ftl" />
       
    26     <head>
       
    27         <title>Bill of Materials</title>
       
    28         <@helium_logger_html_head/>
       
    29     </head>
       
    30     <body>
       
    31 
       
    32 
       
    33 <#macro printtype project title type>
       
    34     <#assign helium_node_id = helium_node_id + 1>
       
    35     <@helium_logger_node_head nodeid="${helium_node_id}" title="${title}">
       
    36         <@helium_message_box nodeid="${helium_node_id}" type="${type}" count=project?size/>
       
    37     </@helium_logger_node_head>    
       
    38     <@helium_logger_node_content nodeid="${helium_node_id}">
       
    39         <#list project as node>
       
    40             <@helium_logger_print type="${type}">
       
    41                 ${node}
       
    42             </@helium_logger_print>
       
    43         </#list>
       
    44     </@helium_logger_node_content>
       
    45 </#macro>
       
    46 
       
    47 <#macro printTasks project>
       
    48     <#list project.task as node>
       
    49     <@helium_logger_print type="task">
       
    50       ${node.id}:${node.synopsis}
       
    51     </@helium_logger_print>
       
    52     </#list>
       
    53 </#macro>
       
    54 
       
    55 <#macro printTasksAndFolders project title>
       
    56     <#assign helium_node_id = helium_node_id + 1>
       
    57     <@helium_logger_node_head nodeid="${helium_node_id}" title="${title}">
       
    58         <@helium_message_box nodeid="${helium_node_id}" type="task" count=project["count(//task)"]/>
       
    59     </@helium_logger_node_head> 
       
    60     <@helium_logger_node_content nodeid="${helium_node_id}">
       
    61         <@printTasks project=project/>
       
    62         <#list project.folder as node>           
       
    63             <#assign helium_node_id = helium_node_id + 1>
       
    64             <@helium_logger_node_head nodeid="${helium_node_id}" title="${node.name}">
       
    65                 <@helium_message_box nodeid="${helium_node_id}" type="task" count=project.task?size/>
       
    66             </@helium_logger_node_head>    
       
    67             <@helium_logger_node_content nodeid="${helium_node_id}">
       
    68                 <@printTasks project=node/>
       
    69             </@helium_logger_node_content>
       
    70         </#list>          
       
    71     </@helium_logger_node_content>
       
    72 </#macro>
       
    73 
       
    74 <#macro printproject project>
       
    75     <#assign helium_node_id = helium_node_id + 1>
       
    76     <@helium_logger_node_head nodeid="${helium_node_id}" title="${project.name}">
       
    77         <@helium_message_box nodeid="${helium_node_id}" type="baseline" count=project.baseline?size/>
       
    78         <@helium_message_box nodeid="${helium_node_id}" type="task" count=project["count(//task)"]/>
       
    79         <@helium_message_box nodeid="${helium_node_id}" type="fix" count=project.fix?size/>
       
    80     </@helium_logger_node_head>    
       
    81     <@helium_logger_node_content nodeid="${helium_node_id}">
       
    82         <@printtype project=project.baseline title="Baselines" type="baseline"/>
       
    83         <@printTasksAndFolders project=project title="Tasks"/>
       
    84         <@printtype project=project.fix title="Fix" type="fix"/>
       
    85     </@helium_logger_node_content>
       
    86 </#macro>
       
    87 
       
    88 
       
    89     
       
    90     <@helium_logger_header title="${doc.bom.build} build"/>
       
    91         
       
    92     <@helium_logger_content title="Baseline and Task details">
       
    93         <#list doc.bom.content.project as project>
       
    94             <@printproject project=project />
       
    95         </#list>
       
    96     </@helium_logger_content>
       
    97 
       
    98     <@helium_logger_content title="ICDs / ICFs">
       
    99         <@printtype project=doc.bom.content.input.icds.icd.name title="ICDs / ICFs" type="icd"/>
       
   100     </@helium_logger_content>
       
   101     
       
   102     </body>
       
   103 </html>
       
   104