buildframework/helium/tools/integration/template-builder/template-builder.ant.xml
author Alex Gilkes <alex.gilkes@nokia.com>
Wed, 28 Oct 2009 14:39:48 +0000
changeset 1 be27ed110b50
permissions -rw-r--r--
Bringing in Helium, imaker and cmaker

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
============================================================================ 
Name        : template-builder.ant.xml 
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:

============================================================================
-->
<project name="template-builder" xmlns:hlm="http://www.nokia.com/helium">
    <description>
        This target provides support to replace properties from a text file
        using values from the ROM image configuration. 
    </description>

    <!--
        This target provides support to replace properties from a text file
        using values from the ROM image configuration. 
         <deprecated>ROM building implementation will change in future release of Helium.</deprecated>
    -->
    <target name="template-builder" depends="rombuild-prepare-input">        
        <hlm:python>
import configuration
import integration.templatebuilder
import os
import logging
            
# Enabling info outputing.
logging.basicConfig(level=logging.INFO)

configBuilder = configuration.NestedConfigurationBuilder(open(r'${rombuild.config.file.parsed}', 'r'))
configSet = configBuilder.getConfiguration()
for product in r'${product.list}'.split(','):
    builder = integration.templatebuilder.TemplateBuilder(configSet, product)
    builder.build()    
        </hlm:python>
    </target>
</project>