buildframework/helium/tools/common/templates/quality/cone-validate.xml.ftl
changeset 628 7c4a911dc066
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
       
     1 <#--
       
     2 ============================================================================ 
       
     3 Name        : cone-validate.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 
       
    23 <project name="cone-validate" default="all">
       
    24     
       
    25     <target name="product-cone-validate">
       
    26         <#if os?lower_case?starts_with('win')>
       
    27             <#assign exe_file="cmd.exe"/>
       
    28         <#else>
       
    29             <#assign exe_file="bash"/>
       
    30         </#if>
       
    31         <#list ant['product.list']?split(',') as product>
       
    32         <sequential>
       
    33             <echo>Validating cone configuration for ${product}_root.confml</echo>
       
    34             <exec executable="${exe_file}" dir="${ant['build.drive']}/epoc32/tools" failonerror="false">
       
    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="validate" />
       
    42                 <arg value="--project"/>
       
    43                 <arg value="${ant['build.drive']}/epoc32/rom/config"/>
       
    44                 <arg value="--configuration"/>
       
    45                 <arg value="${product}_root.confml"/>
       
    46                 <arg value="--report-type"/> 
       
    47                 <arg value="xml" />
       
    48                 <arg value="--report"/>
       
    49                 <arg value="${ant['post.log.dir']}/${ant['build.id']}_validate_cone_${product}.xml" />
       
    50             </exec>
       
    51         </sequential>
       
    52         </#list>
       
    53     </target>
       
    54     
       
    55     <target name="all" depends="product-cone-validate" />
       
    56 </project>
       
    57 
       
    58