buildframework/helium/tools/preparation/templates/ido-cmt-ant.xml.ftl
author Zheng Shen <zheng.shen@nokia.com>
Tue, 26 Oct 2010 11:12:31 +0800
changeset 654 7c11c3d8d025
parent 645 b8d81fa19e7d
permissions -rw-r--r--
romtools 13.2.0.1

<#--
============================================================================ 
Name        : ido-cmt-ant.xml.ftl 
Part of     : Helium 

Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved.
This component and the accompanying materials are made available
under the terms of the License "Eclipse Public License v1.0"
which accompanies this distribution, and is available
at the URL "http://www.eclipse.org/legal/epl-v10.html".

Initial Contributors:
Nokia Corporation - initial contribution.

Contributors:

Description:

============================================================================
--> 
<?xml version="1.0"?>
<project name="ido-cmt-ant" default="all" xmlns:hlm="http://www.nokia.com/helium">
<import file="${ant['helium.dir']}/helium.ant.xml"/>
<#assign targetlist=""/>
<#assign cmtid=1/>
    <#list data?keys as component>
    <#if (cmtid > 1)>
    <#assign targetlist="${targetlist}" + ","/>
    </#if>
    <basename property="componentbase${cmtid}" file="${data[component]}"/>
    <target name="cmt-${cmtid}">
        <hlm:cmt output="${ant['build.log.dir']}/${ant['build.id']}_cmt/${ant['build.id']}_${r'$'}{componentbase${cmtid}}_${cmtid}.txt" failonerror="${ant['failonerror']}" 
                 htmlOutputDir="${ant['ido.cmt.html.output.dir']}">
            <fileset id="input" dir="${data[component]}">
                <include name="**/*.h"/>
                <include name="**/*.cpp"/>
            </fileset>
        </hlm:cmt>
    </target>

    <#assign targetlist="${targetlist}" + "cmt-${cmtid}"/>
    <#assign cmtid=cmtid+1/>
    </#list>
    <target name="all" depends="${targetlist}" />
</project>