author | lorewang |
Mon, 22 Nov 2010 10:56:31 +0800 | |
changeset 700 | c22eff170fac |
parent 645 | b8d81fa19e7d |
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 |
|
587 | 30 |
<!-- |
31 |
Executes compilation of a System Model of System Definition file using Symbian SBS (Raptor) tools. |
|
32 |
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
|
33 |
--> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
34 |
|
628 | 35 |
<!--* @property sbs.ctc.enabled |
36 |
This property enables Raptor compilation using ctc. |
|
37 |
@type boolean |
|
38 |
@editable required |
|
39 |
@scope public |
|
40 |
--> |
|
41 |
||
587 | 42 |
<!--* @property sbs.build.ctc |
628 | 43 |
This property enables Raptor compilation using ctc. - deprecated: Start using sbs.ctc.enabled property. |
44 |
@type boolean |
|
45 |
@editable required |
|
46 |
@scope public |
|
47 |
@deprecated since 11.0 |
|
48 |
--> |
|
49 |
||
50 |
<!--* @property sbs.checksource.enabled |
|
51 |
This property enables Raptor checksource analysis. |
|
52 |
@type boolean |
|
53 |
@editable required |
|
54 |
@scope public |
|
55 |
--> |
|
56 |
||
588 | 57 |
|
58 |
<!-- This property enables sbs layer filtering of the canonical system definition file |
|
59 |
for system definition schema 1.4.0 using ${sysdef.configuration}. |
|
60 |
@type boolean |
|
217 | 61 |
--> |
588 | 62 |
<property name="sbs.layer.generation.enabled" value="true" /> |
63 |
||
628 | 64 |
<!-- This property enables the downgrading of the canonical system |
65 |
definition v3 model into 2.0 before passing the file to sbs. |
|
66 |
@type boolean |
|
67 |
--> |
|
68 |
<property name="sbs.downgrade.sysdef.enabled" value="true" /> |
|
69 |
||
70 |
||
588 | 71 |
<!-- Default CTC command line option, override it to customize it. --> |
72 |
<hlm:argSet id="ctc.build.options" /> |
|
73 |
||
74 |
<!-- This property define what instrumentation CTC should create. |
|
75 |
@type string |
|
76 |
--> |
|
77 |
<property name="ctc.instrument.type" value="m" /> |
|
78 |
||
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
79 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
80 |
<!-- 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
|
81 |
<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
|
82 |
<sequential> |
628 | 83 |
<echo message="cannonical sysdef file: ${canonical.sysdef.file}" /> |
84 |
<echo message="raptor-filters: raptor_${sysdef.configuration}" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
85 |
<if> |
588 | 86 |
<isfalse value="${sbs.layer.generation.enabled}" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
87 |
<then> |
588 | 88 |
<if> |
89 |
<isreference refid="sysdef.layers.${sysdef.configuration}" /> |
|
90 |
<then> |
|
628 | 91 |
<property name="sbs.patternset" value="sysdef.layers.${sysdef.configuration}" /> |
588 | 92 |
<echo message="sbs.patternset: ${sbs.patternset}" /> |
93 |
</then> |
|
94 |
<else> |
|
95 |
<echo message="The sysdef.layers.${sysdef.configuration} pattern set is not defined." /> |
|
96 |
</else> |
|
97 |
</if> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
98 |
<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
|
99 |
</then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
100 |
<else> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
101 |
<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
|
102 |
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
|
103 |
</else> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
104 |
</if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
105 |
<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
|
106 |
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
|
107 |
<filterchain> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
108 |
<linecontainsregexp negate="true"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
109 |
<regexp pattern="^\s*$"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
110 |
</linecontainsregexp> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
111 |
</filterchain> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
112 |
</copy> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
113 |
<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
|
114 |
</sequential> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
115 |
</macrodef> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
116 |
|
628 | 117 |
|
118 |
<condition property="build.system.sbs-any"> |
|
119 |
<or> |
|
120 |
<equals arg1="${build.system}" arg2="sbs" /> |
|
121 |
<equals arg1="${build.system}" arg2="sbs-ec" /> |
|
122 |
</or> |
|
123 |
</condition> |
|
124 |
||
125 |
||
126 |
<!-- SBS build with gmake as engine type. |
|
127 |
||
128 |
Default is using sbs macro, to use old implementation to |
|
129 |
use using exec task, then sbs.using.exec needs to be set. |
|
130 |
--> |
|
131 |
<target name="compile-sbs" if="build.system.sbs-any"> |
|
132 |
<echo message="Copying Helium filter plugin to sbs home" /> |
|
133 |
<var name="sbs.internal.inputs.list" unset="true"/> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
134 |
<if> |
628 | 135 |
<istrue value="${sysdef3.enabled}" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
136 |
<then> |
217 | 137 |
<if> |
628 | 138 |
<isreference refid="sysdef.filters.${sysdef.configuration}" /> |
217 | 139 |
<then> |
628 | 140 |
<hlm:filterSysdef epocroot="${build.drive}/" srcfile="${canonical.sysdef.file}" |
141 |
destfile="${build.drive}/output/build/canonical_system_definition_filtered_${sysdef.configuration}.xml"> |
|
142 |
<filterSet refid="sysdef.filters.${sysdef.configuration}" /> |
|
143 |
</hlm:filterSysdef> |
|
144 |
</then> |
|
145 |
<else> |
|
146 |
<echo message="The sysdef.filters.${sysdef.configuration} sysdefFilterSet is not defined." /> |
|
147 |
<copy file="${canonical.sysdef.file}" |
|
148 |
tofile="${build.drive}/output/build/canonical_system_definition_filtered_${sysdef.configuration}.xml" /> |
|
149 |
</else> |
|
150 |
</if> |
|
151 |
<if> |
|
152 |
<istrue value="${sbs.downgrade.sysdef.enabled}" /> |
|
153 |
<then> |
|
154 |
<hlm:downgradeSysdef epocroot="${build.drive}/" srcfile="${build.drive}/output/build/canonical_system_definition_filtered_${sysdef.configuration}.xml" |
|
587 | 155 |
destfile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml"/> |
628 | 156 |
</then> |
157 |
<else> |
|
158 |
<echo message="Downgrading to 2.0 model disabled." /> |
|
159 |
<copy file="${build.drive}/output/build/canonical_system_definition_filtered_${sysdef.configuration}.xml" |
|
160 |
tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" /> |
|
161 |
</else> |
|
162 |
</if> |
|
163 |
<var name="sbs.patternset" unset="true"/> |
|
164 |
<if> |
|
165 |
<isreference refid="sysdef.layers.${sysdef.configuration}" /> |
|
166 |
<then> |
|
167 |
<property name="sbs.patternset" value="sysdef.layers.${sysdef.configuration}" /> |
|
168 |
<echo message="sbs.patternset: ${sbs.patternset}" /> |
|
169 |
</then> |
|
170 |
<else> |
|
171 |
<echo message="The sysdef.layers.${sysdef.configuration} patternset is not defined." /> |
|
172 |
</else> |
|
173 |
</if> |
|
174 |
</then> |
|
175 |
<else> |
|
176 |
<var name="sbs.patternset" unset="true"/> |
|
177 |
<if> |
|
178 |
<isreference refid="sysdef.layers.${sysdef.configuration}" /> |
|
179 |
<then> |
|
180 |
<property name="sbs.patternset" value="sysdef.filters.${sysdef.configuration}" /> |
|
181 |
<echo message="sbs.patternset: ${sbs.patternset}" /> |
|
182 |
<copy file="${canonical.sysdef.file}" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" /> |
|
217 | 183 |
</then> |
184 |
<else> |
|
628 | 185 |
<echo message="The sysdef.layers.${sysdef.configuration} patternset is not defined." /> |
186 |
<hlm:generate-layers /> |
|
217 | 187 |
</else> |
628 | 188 |
</if> |
189 |
</else> |
|
190 |
</if> |
|
191 |
<hlm:getsbsinputs config="sbs.${sysdef.configuration}" outputProperty="sbs.internal.inputs.list"/> |
|
192 |
<for list="${sbs.internal.inputs.list}" delimiter="," param="sbs.input"> |
|
193 |
<sequential> |
|
194 |
<echo message="building raptor input: @{sbs.input}" /> |
|
195 |
<var name="sbs.log.file" unset="true" /> |
|
196 |
<property name="sbs.log.file" location="${compile.log.dir}/${build.id}_${sysdef.configuration}_@{sbs.input}_compile.log" /> |
|
197 |
<!-- run arm license checking / setting arm version only for arm config --> |
|
198 |
<hlm:getVariableValue name="-c" property="compilevalue.var" failOnerror="false"> |
|
199 |
<hlm:sbsinput refid="@{sbs.input}" /> |
|
200 |
</hlm:getVariableValue> |
|
201 |
<echo message="config parameter -c : ${compilevalue.var}" /> |
|
202 |
<if> |
|
203 |
<and> |
|
204 |
<isset property="compilevalue.var"/> |
|
205 |
<matches string="${compilevalue.var}" pattern="arm.*"/> |
|
206 |
</and> |
|
207 |
<then> |
|
208 |
<runtarget target="set-arm-version"/> |
|
209 |
</then> |
|
210 |
</if> |
|
211 |
<!-- Generate the filtered layers --> |
|
212 |
<if> |
|
213 |
<or> |
|
214 |
<istrue value="${coverity.enabled}" /> |
|
645 | 215 |
<istrue value="${enabled.coverity}"/> |
628 | 216 |
</or> |
217 |
<then> |
|
218 |
<hlm:coveritybuild sbsinput="@{sbs.input}" |
|
219 |
sysdeffile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" |
|
220 |
layerpatternsetref="${sbs.patternset}" |
|
221 |
workingdir="${build.drive}/" |
|
222 |
execute="true" |
|
223 |
failonerror="false" |
|
224 |
outputlog="${sbs.log.file}" |
|
225 |
erroroutput="${sbs.log.file}.sbs_error.log"> |
|
226 |
<hlm:coverityoptions refid="coverity.build.options"/> |
|
227 |
</hlm:coveritybuild> |
|
228 |
</then> |
|
229 |
<elseif> |
|
230 |
<or> |
|
231 |
<istrue value="${sbs.ctc.enabled}"/> |
|
232 |
<isset property="sbs.build.ctc"/> |
|
233 |
</or> |
|
234 |
<then> |
|
235 |
<hlm:ctctask sbsinput="@{sbs.input}" |
|
236 |
sysdefFile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" |
|
237 |
layerPatternSetRef="${sbs.patternset}" |
|
238 |
errorOutput="${sbs.log.file}.sbs_error.log" |
|
239 |
workingDir="${build.drive}/" |
|
240 |
failOnError="false" |
|
241 |
outputLog="${sbs.log.file}" |
|
242 |
instrumentType="${ctc.instrument.type}"> |
|
243 |
<hlm:CTCOptions refid="ctc.build.options" /> |
|
244 |
</hlm:ctctask> |
|
245 |
</then> |
|
246 |
</elseif> |
|
247 |
<else> |
|
248 |
<hlm:sbstask sbsinput="@{sbs.input}" |
|
249 |
sysdefFile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" |
|
250 |
layerPatternSetRef="${sbs.patternset}" |
|
251 |
errorOutput="${sbs.log.file}.sbs_error.log" |
|
252 |
workingDir="${build.drive}/" |
|
253 |
failOnError="false" |
|
254 |
outputLog="${sbs.log.file}" /> |
|
255 |
</else> |
|
256 |
</if> |
|
257 |
<hlm:assertFileExists file="${sbs.log.file}"/> |
|
258 |
<hlm:assertFileExists file="${sbs.log.file}.sbs_error.log"/> |
|
259 |
<!-- run arm license checking / setting arm version only for arm config --> |
|
260 |
<hlm:sbsProcessOutputMacro sbsLogFile="${sbs.log.file}" |
|
261 |
sbsErrorOutputFile="${sbs.log.file}.sbs_error.log"/> |
|
262 |
</sequential> |
|
263 |
</for> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
264 |
</target> |
217 | 265 |
|
266 |
||
628 | 267 |
<!-- Runs the SBS checksource filter on the SBS log file. --> |
268 |
<macrodef name="sbsChecksourceMacro" uri="http://www.nokia.com/helium"> |
|
269 |
<attribute name="sbsLogFile" /> |
|
270 |
<sequential> |
|
271 |
<var name="sbs.checksource.log.file" unset="true"/> |
|
272 |
<property name="sbs.checksource.log.file" location="@{sbsLogFile}.checksource.log" /> |
|
273 |
<exec osfamily="windows" executable="cmd" dir="${build.drive}/" input="@{sbsLogFile}" |
|
274 |
output="${sbs.checksource.log.file}" failonerror="false"> |
|
275 |
<arg value="/c" /> |
|
276 |
<arg value="sbs_filter.bat" /> |
|
277 |
<arg value="--filters=FilterCheckSource" /> |
|
278 |
</exec> |
|
279 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
|
280 |
<hlm:textmetadatainput> |
|
281 |
<fileset file="${sbs.checksource.log.file}"/> |
|
282 |
<metadatafilterset refid="filterset.sbs.checksource"/> |
|
283 |
</hlm:textmetadatainput> |
|
284 |
</hlm:metadatarecord> |
|
285 |
</sequential> |
|
286 |
</macrodef> |
|
287 |
||
288 |
||
179 | 289 |
<macrodef name="sbsProcessOutputMacro" uri="http://www.nokia.com/helium"> |
628 | 290 |
<attribute name="sbsLogFile" /> |
291 |
<attribute name="sbsErrorOutputFile" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
292 |
<sequential> |
628 | 293 |
<var name="sbs.scan2.template" value="${helium.dir}/tools/common/templates/log/scan2_orm.html.ftl" /> |
294 |
<var name="base.sbs.log" unset="true"/> |
|
295 |
<basename property="base.sbs.log" file="@{sbsLogFile}" /> |
|
217 | 296 |
<echo message="base.sbs.log: ${base.sbs.log}" /> |
179 | 297 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
298 |
<hlm:textmetadatainput> |
|
628 | 299 |
<fileset casesensitive="false" file="@{sbsErrorOutputFile}"/> |
588 | 300 |
<metadatafilterset refid="filterset.sbs.cli" /> |
179 | 301 |
</hlm:textmetadatainput> |
302 |
</hlm:metadatarecord> |
|
628 | 303 |
<hlm:signalMacro logfile="@{sbsErrorOutputFile}" |
304 |
signal.input="raptorErrorSignalInput" phase="compile"/> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
305 |
<!-- update the resultes to database --> |
628 | 306 |
<if> |
307 |
<available file="@{sbsLogFile}" /> |
|
308 |
<then> |
|
309 |
<echo message="sbs log file: @{sbsLogFile}" /> |
|
179 | 310 |
<if> |
628 | 311 |
<istrue value="${internal.compile.cmd.clean.enabled}" /> |
179 | 312 |
<then> |
628 | 313 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
314 |
<hlm:sbsmetadatainput failOnInvalidXml="false" checkMissing="false" epocroot="${build.drive}/"> |
|
315 |
<fileset casesensitive="false" file="@{sbsLogFile}"/> |
|
217 | 316 |
<metadatafilterset refid="filterset.sbs" /> |
628 | 317 |
</hlm:sbsmetadatainput> |
179 | 318 |
</hlm:metadatarecord> |
319 |
</then> |
|
320 |
<else> |
|
628 | 321 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
322 |
<hlm:sbsmetadatainput failOnInvalidXml="false" epocroot="${build.drive}/"> |
|
323 |
<fileset casesensitive="false" file="@{sbsLogFile}"/> |
|
324 |
<metadatafilterset refid="filterset.sbs" /> |
|
325 |
</hlm:sbsmetadatainput> |
|
326 |
</hlm:metadatarecord> |
|
327 |
<if> |
|
328 |
<istrue value="${sbs.checksource.enabled}" /> |
|
329 |
<then> |
|
330 |
<hlm:sbsChecksourceMacro sbsLogFile="@{sbsLogFile}" /> |
|
331 |
</then> |
|
332 |
</if> |
|
179 | 333 |
</else> |
334 |
</if> |
|
628 | 335 |
<fmpp sourceFile="${sbs.scan2.template}" |
336 |
outputfile="${build.log.dir}/${base.sbs.log}.scan2.html"> |
|
337 |
<freemarkerLinks expandProperties="yes"> |
|
338 |
macro: ${helium.dir}/tools/common/templates/macro |
|
339 |
</freemarkerLinks> |
|
340 |
<data expandProperties="yes"> |
|
341 |
dbPath: ${metadata.dbfile} |
|
342 |
logfilename: @{sbsLogFile} |
|
343 |
ant: antProperties() |
|
344 |
</data> |
|
345 |
</fmpp> |
|
346 |
<hlm:assertFileExists file="${build.log.dir}/${base.sbs.log}.scan2.html"/> |
|
347 |
||
348 |
<echo message="generating signal" /> |
|
349 |
<hlm:compileLogSignalMacro compile.summary.file="@{sbsLogFile}" |
|
350 |
error.limit="${build.errors.limit}" phase="compile"/> |
|
351 |
||
352 |
<!-- Blocks packaging configuration generation. --> |
|
353 |
<if> |
|
354 |
<istrue value="${blocks.enabled}" /> |
|
355 |
<then> |
|
356 |
<mkdir dir="${blocks.config.dir}" /> |
|
357 |
<exec executable="python"> |
|
358 |
<arg value="-m"/> |
|
359 |
<arg value="packager.cli"/> |
|
360 |
<arg value="--epocroot=${build.drive}/" /> |
|
361 |
<arg value="--config=${blocks.config.dir}" /> |
|
362 |
<arg value="--datasource=sbs" /> |
|
363 |
<arg value="-Dsbslog=${sbs.log.file}" /> |
|
364 |
<arg value="-Dsysdef=${canonical.sysdef.file}" /> |
|
365 |
<arg value="-Dthreads=20" /> |
|
366 |
<arg value="--updateData" /> |
|
367 |
</exec> |
|
368 |
</then> |
|
369 |
</if> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
370 |
</then> |
628 | 371 |
<else> |
372 |
<echo>Could not find the sbs log: @{sbsLogFile}.</echo> |
|
373 |
</else> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
374 |
</if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
375 |
</sequential> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
376 |
</macrodef> |
628 | 377 |
|
378 |
||
379 |
<!-- Uploads the SBS checksource results to Diamonds. --> |
|
380 |
<target name="sbs-checksource" if="build.system.sbs-any" /> |
|
217 | 381 |
|
628 | 382 |
</project> |
217 | 383 |