author | wbernard |
Tue, 27 Apr 2010 08:33:08 +0300 | |
changeset 587 | 85df38eb4012 |
parent 217 | 0f5e3a7fb6af |
child 588 | c7c26511138f |
child 618 | df88fead2976 |
permissions | -rw-r--r-- |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
2 |
<!-- |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
3 |
============================================================================ |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
4 |
Name : sbs.ant.xml |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
5 |
Part of : Helium |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
6 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
7 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
8 |
All rights reserved. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
9 |
This component and the accompanying materials are made available |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
10 |
under the terms of the License "Eclipse Public License v1.0" |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
11 |
which accompanies this distribution, and is available |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
12 |
at the URL "http://www.eclipse.org/legal/epl-v10.html". |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
13 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
14 |
Initial Contributors: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
15 |
Nokia Corporation - initial contribution. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
16 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
17 |
Contributors: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
18 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
19 |
Description: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
20 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
21 |
============================================================================ |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
22 |
--> |
217 | 23 |
<!--* @package compile --> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
24 |
<project name="compile.sbs" xmlns:hlm="http://www.nokia.com/helium"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
25 |
<description> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
26 |
Executes compilation of a System Model of System Definition file using Symbian SBS (Raptor) tools. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
27 |
</description> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
28 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
29 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
30 |
|
587 | 31 |
<!-- |
32 |
Executes compilation of a System Model of System Definition file using Symbian SBS (Raptor) tools. |
|
33 |
Should not be called directly but through compile-main by setting ${build.system.sbs} property. |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
34 |
--> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
35 |
|
587 | 36 |
<!--* @property sbs.build.ctc |
37 |
This property enables Raptor compilation using ctc. |
|
38 |
@type boolean |
|
39 |
@scope public |
|
40 |
--> |
|
41 |
||
217 | 42 |
<!-- skip sbs layer filtering (true) for new schema and false for schema 1.4.0 |
43 |
@type boolean |
|
44 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
45 |
<property name="skip.sbs.layer.generation" value="false" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
46 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
47 |
<!-- This target filters the canonical system definition file compare to the "raptor_${sysdef.configuration}" filter. --> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
48 |
<macrodef name="generate-layers" uri="http://www.nokia.com/helium"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
49 |
<sequential> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
50 |
<echo message="canno-file:${canonical.sysdef.file}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
51 |
<echo message="raptor-filters:raptor_${sysdef.configuration}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
52 |
<if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
53 |
<istrue value="${skip.sbs.layer.generation}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
54 |
<then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
55 |
<copy file="${canonical.sysdef.file}" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
56 |
</then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
57 |
<else> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
58 |
<hlm:compileGenxmlFilterMacro input="${canonical.sysdef.file}" filter="raptor_${sysdef.configuration}" |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
59 |
output="${build.output.dir}/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
60 |
</else> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
61 |
</if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
62 |
<copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml" |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
63 |
tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
64 |
<filterchain> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
65 |
<linecontainsregexp negate="true"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
66 |
<regexp pattern="^\s*$"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
67 |
</linecontainsregexp> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
68 |
</filterchain> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
69 |
</copy> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
70 |
<delete file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
71 |
</sequential> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
72 |
</macrodef> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
73 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
74 |
<!-- SBS build with gmake as engine type. Default is using sbs macro, to use old implementation to |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
75 |
use using exec task, then sbs.using.exec needs to be set. --> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
76 |
<target name="compile-sbs" description="This is the main build that gets built for ARMV5 and WINSCW platforms"> |
179 | 77 |
<!-- only temporary once config file option starts to work, then no |
78 |
need to copy the plugin file --> |
|
79 |
||
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
80 |
<if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
81 |
<or> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
82 |
<equals arg1="${build.system}" arg2="sbs" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
83 |
<equals arg1="${build.system}" arg2="sbs-ec" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
84 |
</or> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
85 |
<then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
86 |
<echo message="Copying helium filter plugin to sbs home" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
87 |
<copy file="${helium.dir}/tools/common/python/scripts/filter_metadatalog.py" todir="${env.SBS_HOME}/python/plugins/" failonerror="true" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
88 |
<copy file="${helium.dir}/tools/common/python/scripts/sbsscanlogmetadata.py" todir="${env.SBS_HOME}/python/plugins/" failonerror="true" /> |
217 | 89 |
<var name="sbs.internal.inputs.list" value="" unset="true"/> |
90 |
<if> |
|
91 |
<istrue value="${schema.new}" /> |
|
92 |
<then> |
|
587 | 93 |
<hlm:downgradeSysdef epocroot="${build.drive}/" srcfile="${canonical.sysdef.file}" |
94 |
destfile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml"/> |
|
95 |
<var name="sbs.patternset" unset="true"/> |
|
96 |
<if> |
|
97 |
<isreference refid="sysdef.filters.${sysdef.configuration}" /> |
|
98 |
<then> |
|
99 |
<property name="sbs.patternset" value="sysdef.filters.${sysdef.configuration}" /> |
|
100 |
<echo message="sbs.patternset: ${sbs.patternset}" /> |
|
101 |
</then> |
|
102 |
<else> |
|
103 |
<echo message="The sysdef.${sysdef.configuration} patternset is not defined." /> |
|
104 |
</else> |
|
105 |
</if> |
|
217 | 106 |
</then> |
107 |
<else> |
|
587 | 108 |
<hlm:generate-layers /> |
217 | 109 |
</else> |
110 |
</if> |
|
587 | 111 |
<var name="sbs.internal.inputs.list" value="" unset="true"/> |
112 |
<hlm:getsbsinputs config="sbs.${sysdef.configuration}" outputProperty="sbs.internal.inputs.list"/> |
|
217 | 113 |
<for list="${sbs.internal.inputs.list}" delimiter="," param="sbs.input"> |
179 | 114 |
<sequential> |
115 |
<echo message="building raptor input: @{sbs.input}" /> |
|
587 | 116 |
<var name="sbs.log.file" unset="true" /> |
117 |
<property name="sbs.log.file" location="${compile.log.dir}/${build.id}_${sysdef.configuration}_@{sbs.input}_compile.log" /> |
|
179 | 118 |
<!-- run arm license checking / setting arm version only for arm config --> |
119 |
<hlm:getVariableValue name="-c" property="compilevalue.var" failOnerror="false"> |
|
120 |
<hlm:sbsinput refid="@{sbs.input}" /> |
|
121 |
</hlm:getVariableValue> |
|
122 |
<echo message="config parameter -c : ${compilevalue.var}" /> |
|
123 |
<if> |
|
124 |
<and> |
|
125 |
<isset property="compilevalue.var"/> |
|
126 |
<matches string="${compilevalue.var}" pattern="arm.*"/> |
|
127 |
</and> |
|
128 |
<then> |
|
129 |
<runtarget target="set-arm-version"/> |
|
130 |
</then> |
|
131 |
</if> |
|
132 |
<!-- Generate the filtered layers --> |
|
217 | 133 |
<if> |
134 |
<isset property="run.coverity"/> |
|
135 |
<then> |
|
136 |
<hlm:coveritybuild sbsinput="@{sbs.input}" |
|
137 |
sysdeffile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" |
|
138 |
layerpatternsetref="${sbs.patternset}" |
|
139 |
workingdir="${build.drive}/" |
|
140 |
execute="true" |
|
141 |
failonerror="false" |
|
142 |
outputlog="${sbs.log.file}" |
|
587 | 143 |
erroroutput="${sbs.log.file}.sbs_error.log"> |
217 | 144 |
<hlm:coverityoptions refid="coverity.build.options"/> |
145 |
</hlm:coveritybuild> |
|
146 |
</then> |
|
147 |
<elseif> |
|
148 |
<istrue value="${sbs.build.ctc}"/> |
|
149 |
<then> |
|
150 |
<hlm:ctctask sbsinput="@{sbs.input}" |
|
151 |
sysdefFile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" |
|
152 |
layerPatternSetRef="${sbs.patternset}" |
|
153 |
errorOutput="${sbs.log.file}.sbs_error.log" |
|
154 |
workingDir="${build.drive}/" |
|
155 |
failOnError="false" |
|
587 | 156 |
outputLog="${sbs.log.file}" /> |
217 | 157 |
</then> |
158 |
</elseif> |
|
159 |
<else> |
|
160 |
<hlm:sbstask sbsinput="@{sbs.input}" |
|
161 |
sysdefFile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" |
|
162 |
layerPatternSetRef="${sbs.patternset}" |
|
163 |
errorOutput="${sbs.log.file}.sbs_error.log" |
|
164 |
workingDir="${build.drive}/" |
|
165 |
failOnError="false" |
|
587 | 166 |
outputLog="${sbs.log.file}" /> |
217 | 167 |
</else> |
168 |
</if> |
|
169 |
<hlm:assertFileExists file="${sbs.log.file}"/> |
|
170 |
<hlm:assertFileExists file="${sbs.log.file}.sbs_error.log"/> |
|
179 | 171 |
<!-- run arm license checking / setting arm version only for arm config --> |
172 |
<echo message="sbs.log.file: ${sbs.log.file}" /> |
|
173 |
<hlm:sbsProcessOutputMacro sbs.log.file="${sbs.log.file}" |
|
174 |
sbs.ant.output.file="${sbs.log.file}" sbs.error.output.file="${sbs.log.file}.sbs_error.log"/> |
|
175 |
</sequential> |
|
176 |
</for> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
177 |
</then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
178 |
</if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
179 |
</target> |
217 | 180 |
|
181 |
||
179 | 182 |
<macrodef name="sbsProcessOutputMacro" uri="http://www.nokia.com/helium"> |
183 |
<attribute name="sbs.log.file" /> |
|
184 |
<attribute name="sbs.error.output.file" /> |
|
185 |
<attribute name="sbs.ant.output.file" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
186 |
<sequential> |
217 | 187 |
<var name="sbs.scan2.template" value="scan2_orm.html.ftl" /> |
188 |
<var name="base.sbs.log" value="" unset="true"/> |
|
189 |
<basename property="base.sbs.log" file="@{sbs.log.file}" /> |
|
190 |
<echo message="base.sbs.log: ${base.sbs.log}" /> |
|
179 | 191 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
192 |
<hlm:textmetadatainput> |
|
193 |
<fileset casesensitive="false" file="@{sbs.error.output.file}"/> |
|
194 |
<metadatafilterset refid="filterset.sbs" /> |
|
195 |
</hlm:textmetadatainput> |
|
196 |
</hlm:metadatarecord> |
|
197 |
<basename property="base.sbs.ant.output.log" file="@{sbs.ant.output.file}" /> |
|
198 |
<hlm:signalMacro logfile="@{sbs.error.output.file}" |
|
199 |
signal.input="raptorErrorSignalInput" phase="compile"/> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
200 |
<!-- update the resultes to database --> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
201 |
<echo message="Metadata enabled, storing build status in database" /> |
179 | 202 |
<echo message="sbs log file :@{sbs.log.file}" /> |
203 |
<trycatch property="hlm-sbs.parser.thrown"> |
|
204 |
<try> |
|
217 | 205 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
587 | 206 |
<hlm:sbsmetadatainput> |
179 | 207 |
<fileset casesensitive="false" file="@{sbs.log.file}"/> |
208 |
<metadatafilterset refid="filterset.sbs" /> |
|
209 |
</hlm:sbsmetadatainput> |
|
210 |
</hlm:metadatarecord> |
|
211 |
</try> |
|
212 |
<catch> |
|
213 |
<if> |
|
214 |
<istrue value="${skip.sbs.parser.exception}" /> |
|
215 |
<then> |
|
217 | 216 |
<var name="sbs.scan2.template" value="scan2_text_orm.html.ftl" /> |
217 |
<hlm:metadatadelete database="${metadata.dbfile}"> |
|
179 | 218 |
<fileset casesensitive="false" file="@{sbs.log.file}"/> |
219 |
</hlm:metadatadelete> |
|
217 | 220 |
<hlm:metadatarecord database="${metadata.dbfile}" > |
179 | 221 |
<hlm:textmetadatainput> |
222 |
<fileset casesensitive="false" file="@{sbs.log.file}"/> |
|
217 | 223 |
<metadatafilterset refid="filterset.sbs" /> |
179 | 224 |
</hlm:textmetadatainput> |
225 |
</hlm:metadatarecord> |
|
226 |
</then> |
|
227 |
<else> |
|
587 | 228 |
<loadfile property="sbs.error.output" srcfile="@{sbs.error.output.file}" failonerror="false"/> |
229 |
<fail message="failed during raptor log parsing: might be due to invalid xml output from raptor ${hlm-sbs.parser.thrown}. ${sbs.error.output}" /> |
|
179 | 230 |
</else> |
231 |
</if> |
|
232 |
</catch> |
|
233 |
</trycatch> |
|
234 |
<fmpp sourceFile="${helium.dir}/tools/common/templates/log/${sbs.scan2.template}" |
|
217 | 235 |
outputfile="${build.log.dir}/${base.sbs.log}.scan2.html"> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
236 |
<freemarkerLinks expandProperties="yes"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
237 |
macro: ${helium.dir}/tools/common/templates/macro |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
238 |
</freemarkerLinks> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
239 |
<data expandProperties="yes"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
240 |
dbPath: ${metadata.dbfile} |
587 | 241 |
logfilename: @{sbs.log.file} |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
242 |
ant: antProperties() |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
243 |
</data> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
244 |
</fmpp> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
245 |
<echo message="generating signal" /> |
217 | 246 |
<hlm:assertFileExists file="${build.log.dir}/${base.sbs.log}.scan2.html"/> |
247 |
<hlm:compileLogSignalMacro compile.summary.file="@{sbs.log.file}" |
|
179 | 248 |
error.limit="${build.errors.limit}" phase="compile"/> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
249 |
<!-- Blocks packaging configuration generation. --> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
250 |
<if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
251 |
<istrue value="${blocks.enabled}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
252 |
<then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
253 |
<mkdir dir="${blocks.config.dir}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
254 |
<exec executable="python"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
255 |
<arg value="-m"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
256 |
<arg value="packager.cli"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
257 |
<arg value="--epocroot=${build.drive}/" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
258 |
<arg value="--config=${blocks.config.dir}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
259 |
<arg value="--datasource=sbs" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
260 |
<arg value="-Dsbslog=${sbs.log.file}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
261 |
<arg value="-Dsysdef=${canonical.sysdef.file}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
262 |
<arg value="-Dthreads=20" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
263 |
<arg value="--updateData" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
264 |
</exec> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
265 |
</then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
266 |
</if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
267 |
</sequential> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
268 |
</macrodef> |
217 | 269 |
|
270 |
<scriptdef language="jython" name="getSbsHome" uri="http://www.nokia.com/helium"> |
|
271 |
<attribute name="property" /> |
|
272 |
if attributes.get("property") is None: |
|
273 |
raise Exception("property attribute has not been set.") |
|
274 |
if project.getProperty(attributes.get("property")) is None: |
|
275 |
import symbian.raptor |
|
276 |
sbs_home = symbian.raptor.getSBSHome() |
|
277 |
if sbs_home is not None: |
|
278 |
#self.log("Found SBS_HOME as " + sbs_home) |
|
279 |
project.setNewProperty(attributes.get("property"), sbs_home) |
|
280 |
</scriptdef> |
|
281 |
||
179 | 282 |
</project> |