buildframework/helium/sf/java/sysdef/src/com/nokia/helium/sysdef/templates/root_sysdef_model.xml.ftl
changeset 628 7c4a911dc066
parent 587 85df38eb4012
child 645 b8d81fa19e7d
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
   138   priority CDATA #IMPLIED
   138   priority CDATA #IMPLIED
   139 >
   139 >
   140 <!-- filter and priority are deprecated 
   140 <!-- filter and priority are deprecated 
   141     "root" attribute will usually be inserted by tools when merging models, although it can be set manually-->
   141     "root" attribute will usually be inserted by tools when merging models, although it can be set manually-->
   142 ]>
   142 ]>
   143 <SystemDefinition schema="3.0.0">
   143 <SystemDefinition schema="3.0.0" <#if (idnamespace?? && idnamespace!="http://www.symbian.org/system-definition")>xmlns:vendor="${idnamespace}"</#if>>
   144 <#assign name="">
   144 <systemModel name="<#list roots?keys as root>${root}<#if root_has_next>_</#if></#list>">
   145 <#list roots?keys as root><#assign name=name + root + "_"></#list>
       
   146 <systemModel name="${name}">
       
   147 <#list layers?keys as layer>
   145 <#list layers?keys as layer>
   148     <layer id="${layer}" name="${layer}">
   146     <layer id="${layer}" name="${layer}">
   149     <#list roots?keys as root>
   147     <#list roots?keys as root>
   150         <#if roots[root]?keys?seq_contains(layer)>
   148         <#if roots[root]?keys?seq_contains(layer)>
   151             <#list roots[root][layer] as pkg>
   149             <#list roots[root][layer] as pkg>
   152         <package id="${pkg}" href="${dest_dir_to_epocroot?replace('\\', '/')}${root}/${layer}/${pkg}/package_definition.xml"/>
   150                     <#assign namespaces="" />
       
   151                     <#if (idnamespace?? && idnamespace!="http://www.symbian.org/system-definition")>
       
   152                         <#assign pkgid="vendor:${pkg['id']}" />
       
   153                     <#else>
       
   154                         <#assign pkgid="${pkg['id']}" />
       
   155                     </#if>
       
   156                     <#list pkg['namespaces']?keys as ns>
       
   157                         <#if pkg['namespaces'][ns] != "http://www.symbian.org/system-definition">                        
       
   158                             <#assign namespaces="${namespaces} ${ns}=\"${pkg['namespaces'][ns]}\"" />
       
   159                         <#else>
       
   160                             <#assign nsname=ns?replace("xmlns:", '')>
       
   161                             <#if pkg['id']?starts_with("${nsname}:")>
       
   162                                 <#assign pkgid=pkg['id']?replace("${nsname}:", '') />
       
   163                             </#if>
       
   164                         </#if>
       
   165                     </#list> 
       
   166          <package id="${pkgid}" href="${dest_dir_to_epocroot?replace('\\', '/')}${root}/${layer}/${pkg['path']}/package_definition.xml" ${namespaces}/>
   153             </#list>
   167             </#list>
   154         </#if>
   168         </#if>
   155     </#list>
   169     </#list>
   156     </layer>
   170     </layer>
   157 </#list>
   171 </#list>