|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 ============================================================================ |
|
4 Name : sis.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="compile.sis" xmlns:hlm="http://www.nokia.com/helium"> |
|
24 <description>Create SIS files.</description> |
|
25 |
|
26 <!-- Preprocesses the SIS configuration file to insert Ant properties. --> |
|
27 <target name="preprocess-sis-config" if="sis.config.file"> |
|
28 <property name="sis.config.file.parsed" location="${build.output.dir}/sis.cfg.xml.parsed" /> |
|
29 <copy file="${sis.config.file}" tofile="${sis.config.file.parsed}" overwrite="true"> |
|
30 <filterchain> |
|
31 <expandproperties/> |
|
32 </filterchain> |
|
33 </copy> |
|
34 </target> |
|
35 |
|
36 |
|
37 <!-- Create SIS files. --> |
|
38 <target name="sisfiles" depends="preprocess-sis-config" if="sis.config.file"> |
|
39 <hlm:tempRecordStartMacro name="${build.id}_sisfiles.log"/> |
|
40 <mkdir dir="${build.sisfiles.dir}" /> |
|
41 <hlm:python> |
|
42 import configuration |
|
43 import sis |
|
44 import os |
|
45 |
|
46 builder = configuration.NestedConfigurationBuilder(open(r'${sis.config.file.parsed}', 'r')) |
|
47 configSet = builder.getConfiguration() |
|
48 configs = configSet.getConfigurations() |
|
49 |
|
50 prebuilder = sis.SisPreBuilder(configSet) |
|
51 prebuilder.write(os.path.join(r'${temp.build.dir}', 'sis_build.ant.xml')) |
|
52 </hlm:python> |
|
53 <ant antfile="${temp.build.dir}/sis_build.ant.xml"/> |
|
54 <hlm:tempRecordStopMacro name="${build.id}_sisfiles.log" filterref="filterset.sisfiles"/> |
|
55 <hlm:metadatarecord xmlns:hlm="http://www.nokia.com/helium" database="${metadata.dbfile}"> |
|
56 <hlm:textmetadatainput> |
|
57 <fileset casesensitive="false" file="${build.cache.log.dir}/${build.id}_sisfiles.log"/> |
|
58 <metadatafilterset refid="filterset.sisfiles"/> |
|
59 </hlm:textmetadatainput> |
|
60 </hlm:metadatarecord> |
|
61 </target> |
|
62 |
|
63 </project> |
|
64 |