buildframework/helium/tools/integration/template-builder/template-builder.ant.xml
author Richard Taylor <richard.i.taylor@nokia.com>
Mon, 01 Feb 2010 10:18:03 +0000
branchwip
changeset 323 a186d9720073
parent 1 be27ed110b50
permissions -rw-r--r--
catch up to 2.12.1 from default

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