buildframework/helium/tools/integration/template-builder/template-builder.ant.xml
author timothy.murphy@nokia.com
Fri, 19 Feb 2010 18:35:09 +0000
branchfix
changeset 237 dd11681bd6f3
parent 1 be27ed110b50
permissions -rw-r--r--
SF bug 1861 : display informative messages when timeouts occur in build tasks.

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