buildframework/helium/tools/publish/templates/task-publish.ant.xml.ftl
author William Roberts <williamr@symbian.org>
Fri, 22 Oct 2010 12:33:01 +0100
changeset 651 0d0d83e3702d
parent 645 b8d81fa19e7d
permissions -rw-r--r--
Enhance buildrom.pm to enable final OBY file to be converted into acceptable input for buildrom (Bug 3862)

<#--
============================================================================ 
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>