buildframework/helium/tools/integration/template-builder/template-builder.ant.xml
author timothy.murphy@nokia.com
Wed, 10 Feb 2010 01:08:09 +0200
branchfix
changeset 200 4023109a00c1
parent 1 be27ed110b50
permissions -rw-r--r--
release: notes for sbs_filter-related changes

<?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>