buildframework/helium/tools/common/templates/ido/ido-cenrep-gen.xml.ftl
changeset 628 7c4a911dc066
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
       
     1 <#--
       
     2 ============================================================================ 
       
     3 Name        : ido-cenrep-gen.xml.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 <#assign table_info = pp.loadData('com.nokia.helium.metadata.ORMFMPPLoader',
       
    23         "${dbPath}") >
       
    24 
       
    25 <project name="cenrep-generation" default="all">
       
    26     <#if os?lower_case?starts_with('win')>
       
    27         <#assign exe_file="cmd.exe"/>
       
    28     <#else>
       
    29         <#assign exe_file="bash"/>
       
    30     </#if>
       
    31     <target name="ido-cenrep-generation">
       
    32         <sequential>
       
    33             <#list table_info['native:java.lang.String']['select distinct w.member FROM WhatLogEntry w where w.member like \'%.confml\''] as confmlfile>
       
    34             <exec executable="${exe_file}" dir="${ant['build.drive']}/epoc32/tools" failonerror="false" output="${ant['post.log.dir']}/${ant['build.id']}_cenrep.cone.log">
       
    35                 <#if os?lower_case?starts_with('win')>
       
    36                 <arg value="/c"/>
       
    37                 <arg value="cone.cmd"/>
       
    38                 <#else>
       
    39                 <arg value="cone"/>
       
    40                 </#if>
       
    41                 <arg value="generate" />                            
       
    42                 <arg value="-p"/>
       
    43                 <arg value="${ant['build.drive']}\epoc32\rom\config\assets\s60" />
       
    44                 <arg value="-o" />
       
    45                 <arg value="${ant['build.drive']}\epoc32\release\winscw\urel\z" />
       
    46                 <arg value="-c"/>
       
    47                 <arg value="root.confml" />
       
    48                 <arg value="-i"/> 
       
    49                 <arg value="${confmlfile}" />
       
    50             </exec>
       
    51             </#list>
       
    52         </sequential>
       
    53     </target>
       
    54     
       
    55     <target name="all" depends="ido-cenrep-generation" />
       
    56 </project>
       
    57 
       
    58