buildframework/helium/tools/integration/template-builder/template-builder.ant.xml
author Daniel Jacobs <daniel.jacobs@nokia.com>
Thu, 25 Feb 2010 11:07:00 +0000
branchwip
changeset 340 98f67f17a03c
parent 1 be27ed110b50
permissions -rw-r--r--
Further review comments: update run.bat to run the test suite relative to its directory.

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