buildframework/helium/tools/publish/templates/task-publish.ant.xml.ftl
author jascui
Wed, 17 Nov 2010 13:27:16 +0800
changeset 686 3e502c8c584c
parent 645 b8d81fa19e7d
permissions -rw-r--r--
Update release information and product version.

<#--
============================================================================ 
Name        : task-publish.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="task-publish" default="all" xmlns:hlm="http://www.nokia.com/helium">
    
    <target name="all">
        <#if (ant?keys?seq_contains('ccm.cache.xml'))>
        <hlm:createSessionMacro database="${ant['ccm.database']}" reference="publish.session" cache="${ant['ccm.cache.xml']}"/>
        <#else>
        <hlm:createSessionMacro database="${ant['ccm.database']}" reference="publish.session"/>
        </#if>
        <hlm:ccm verbose="false">
            <!-- Defining some session to use. -->
            <hlm:sessionset refid="publish.session"/>

            <hlm:addtask folder="${ant['publish.ccm.folder']}">
                <#list bom['/bom/content//task/id'] as task>
                <task name="${task?trim}"/>
                </#list>
            </hlm:addtask>
            <#if (!ant?keys?seq_contains('ccm.cache.xml'))>
            <hlm:close/>
            </#if>
        </hlm:ccm>
    </target>
    
    <!-- this is needed to include ccmtask support. -->
    <import file="${ant['helium.dir']}/helium.ant.xml"/>
</project>