|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 ============================================================================ |
|
4 Name : template-builder.ant.xml |
|
5 Part of : Helium |
|
6 |
|
7 Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
8 All rights reserved. |
|
9 This component and the accompanying materials are made available |
|
10 under the terms of the License "Eclipse Public License v1.0" |
|
11 which accompanies this distribution, and is available |
|
12 at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
13 |
|
14 Initial Contributors: |
|
15 Nokia Corporation - initial contribution. |
|
16 |
|
17 Contributors: |
|
18 |
|
19 Description: |
|
20 |
|
21 ============================================================================ |
|
22 --> |
|
23 <project name="template-builder" xmlns:hlm="http://www.nokia.com/helium"> |
|
24 <description> |
|
25 This target provides support to replace properties from a text file |
|
26 using values from the ROM image configuration. |
|
27 </description> |
|
28 |
|
29 <!-- |
|
30 This target provides support to replace properties from a text file |
|
31 using values from the ROM image configuration. |
|
32 <deprecated>ROM building implementation will change in future release of Helium.</deprecated> |
|
33 --> |
|
34 <target name="template-builder" depends="rombuild-prepare-input"> |
|
35 <hlm:python> |
|
36 import configuration |
|
37 import integration.templatebuilder |
|
38 import os |
|
39 import logging |
|
40 |
|
41 # Enabling info outputing. |
|
42 logging.basicConfig(level=logging.INFO) |
|
43 |
|
44 configBuilder = configuration.NestedConfigurationBuilder(open(r'${rombuild.config.file.parsed}', 'r')) |
|
45 configSet = configBuilder.getConfiguration() |
|
46 for product in r'${product.list}'.split(','): |
|
47 builder = integration.templatebuilder.TemplateBuilder(configSet, product) |
|
48 builder.build() |
|
49 </hlm:python> |
|
50 </target> |
|
51 </project> |