author | Richard Taylor <richard.i.taylor@nokia.com> |
Thu, 12 Aug 2010 09:00:16 +0100 | |
changeset 625 | a1925fb7753a |
parent 588 | c7c26511138f |
child 628 | 7c4a911dc066 |
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 |
||
588 | 42 |
<!--* @property schema.new |
43 |
This property enables sbs compilation based on system definition schema 3.0.0. |
|
44 |
@type boolean |
|
45 |
@scope public |
|
46 |
--> |
|
47 |
||
48 |
<!-- This property enables sbs layer filtering of the canonical system definition file |
|
49 |
for system definition schema 1.4.0 using ${sysdef.configuration}. |
|
50 |
@type boolean |
|
217 | 51 |
--> |
588 | 52 |
<property name="sbs.layer.generation.enabled" value="true" /> |
53 |
||
54 |
<!-- Default CTC command line option, override it to customize it. --> |
|
55 |
<hlm:argSet id="ctc.build.options" /> |
|
56 |
||
57 |
<!-- This property define what instrumentation CTC should create. |
|
58 |
@type string |
|
59 |
--> |
|
60 |
<property name="ctc.instrument.type" value="m" /> |
|
61 |
||
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
62 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
63 |
<!-- 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
|
64 |
<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
|
65 |
<sequential> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
66 |
<echo message="canno-file:${canonical.sysdef.file}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
67 |
<echo message="raptor-filters:raptor_${sysdef.configuration}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
68 |
<if> |
588 | 69 |
<isfalse value="${sbs.layer.generation.enabled}" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
70 |
<then> |
588 | 71 |
<if> |
72 |
<isreference refid="sysdef.layers.${sysdef.configuration}" /> |
|
73 |
<then> |
|
74 |
<property name="sbs.patternset" value="sysdef.filters.${sysdef.configuration}" /> |
|
75 |
<echo message="sbs.patternset: ${sbs.patternset}" /> |
|
76 |
</then> |
|
77 |
<else> |
|
78 |
<echo message="The sysdef.layers.${sysdef.configuration} pattern set is not defined." /> |
|
79 |
</else> |
|
80 |
</if> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
81 |
<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
|
82 |
</then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
83 |
<else> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
84 |
<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
|
85 |
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
|
86 |
</else> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
87 |
</if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
88 |
<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
|
89 |
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
|
90 |
<filterchain> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
91 |
<linecontainsregexp negate="true"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
92 |
<regexp pattern="^\s*$"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
93 |
</linecontainsregexp> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
94 |
</filterchain> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
95 |
</copy> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
96 |
<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
|
97 |
</sequential> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
98 |
</macrodef> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
99 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
100 |
<!-- 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
|
101 |
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
|
102 |
<target name="compile-sbs" description="This is the main build that gets built for ARMV5 and WINSCW platforms"> |
179 | 103 |
<!-- only temporary once config file option starts to work, then no |
104 |
need to copy the plugin file --> |
|
105 |
||
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
106 |
<if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
107 |
<or> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
108 |
<equals arg1="${build.system}" arg2="sbs" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
109 |
<equals arg1="${build.system}" arg2="sbs-ec" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
110 |
</or> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
111 |
<then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
112 |
<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
|
113 |
<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
|
114 |
<copy file="${helium.dir}/tools/common/python/scripts/sbsscanlogmetadata.py" todir="${env.SBS_HOME}/python/plugins/" failonerror="true" /> |
217 | 115 |
<var name="sbs.internal.inputs.list" value="" unset="true"/> |
116 |
<if> |
|
117 |
<istrue value="${schema.new}" /> |
|
118 |
<then> |
|
587 | 119 |
<hlm:downgradeSysdef epocroot="${build.drive}/" srcfile="${canonical.sysdef.file}" |
120 |
destfile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml"/> |
|
121 |
<var name="sbs.patternset" unset="true"/> |
|
122 |
<if> |
|
123 |
<isreference refid="sysdef.filters.${sysdef.configuration}" /> |
|
124 |
<then> |
|
125 |
<property name="sbs.patternset" value="sysdef.filters.${sysdef.configuration}" /> |
|
126 |
<echo message="sbs.patternset: ${sbs.patternset}" /> |
|
127 |
</then> |
|
128 |
<else> |
|
588 | 129 |
<echo message="The sysdef.filters.${sysdef.configuration} patternset is not defined." /> |
587 | 130 |
</else> |
131 |
</if> |
|
217 | 132 |
</then> |
133 |
<else> |
|
588 | 134 |
<var name="sbs.patternset" unset="true"/> |
135 |
<if> |
|
136 |
<isreference refid="sysdef.layers.${sysdef.configuration}" /> |
|
137 |
<then> |
|
138 |
<property name="sbs.patternset" value="sysdef.filters.${sysdef.configuration}" /> |
|
139 |
<echo message="sbs.patternset: ${sbs.patternset}" /> |
|
140 |
<copy file="${canonical.sysdef.file}" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" /> |
|
141 |
</then> |
|
142 |
<else> |
|
143 |
<echo message="The sysdef.layers.${sysdef.configuration} patternset is not defined." /> |
|
144 |
<hlm:generate-layers /> |
|
145 |
</else> |
|
146 |
</if> |
|
217 | 147 |
</else> |
588 | 148 |
</if> |
587 | 149 |
<hlm:getsbsinputs config="sbs.${sysdef.configuration}" outputProperty="sbs.internal.inputs.list"/> |
217 | 150 |
<for list="${sbs.internal.inputs.list}" delimiter="," param="sbs.input"> |
179 | 151 |
<sequential> |
152 |
<echo message="building raptor input: @{sbs.input}" /> |
|
587 | 153 |
<var name="sbs.log.file" unset="true" /> |
154 |
<property name="sbs.log.file" location="${compile.log.dir}/${build.id}_${sysdef.configuration}_@{sbs.input}_compile.log" /> |
|
179 | 155 |
<!-- run arm license checking / setting arm version only for arm config --> |
156 |
<hlm:getVariableValue name="-c" property="compilevalue.var" failOnerror="false"> |
|
157 |
<hlm:sbsinput refid="@{sbs.input}" /> |
|
158 |
</hlm:getVariableValue> |
|
159 |
<echo message="config parameter -c : ${compilevalue.var}" /> |
|
160 |
<if> |
|
161 |
<and> |
|
162 |
<isset property="compilevalue.var"/> |
|
163 |
<matches string="${compilevalue.var}" pattern="arm.*"/> |
|
164 |
</and> |
|
165 |
<then> |
|
166 |
<runtarget target="set-arm-version"/> |
|
167 |
</then> |
|
168 |
</if> |
|
169 |
<!-- Generate the filtered layers --> |
|
217 | 170 |
<if> |
171 |
<isset property="run.coverity"/> |
|
172 |
<then> |
|
173 |
<hlm:coveritybuild sbsinput="@{sbs.input}" |
|
174 |
sysdeffile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" |
|
175 |
layerpatternsetref="${sbs.patternset}" |
|
176 |
workingdir="${build.drive}/" |
|
177 |
execute="true" |
|
178 |
failonerror="false" |
|
179 |
outputlog="${sbs.log.file}" |
|
587 | 180 |
erroroutput="${sbs.log.file}.sbs_error.log"> |
217 | 181 |
<hlm:coverityoptions refid="coverity.build.options"/> |
182 |
</hlm:coveritybuild> |
|
183 |
</then> |
|
184 |
<elseif> |
|
185 |
<istrue value="${sbs.build.ctc}"/> |
|
186 |
<then> |
|
187 |
<hlm:ctctask sbsinput="@{sbs.input}" |
|
188 |
sysdefFile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" |
|
189 |
layerPatternSetRef="${sbs.patternset}" |
|
190 |
errorOutput="${sbs.log.file}.sbs_error.log" |
|
191 |
workingDir="${build.drive}/" |
|
192 |
failOnError="false" |
|
588 | 193 |
outputLog="${sbs.log.file}" |
194 |
instrumentType="${ctc.instrument.type}"> |
|
195 |
<hlm:CTCOptions refid="ctc.build.options" /> |
|
196 |
</hlm:ctctask> |
|
217 | 197 |
</then> |
198 |
</elseif> |
|
199 |
<else> |
|
200 |
<hlm:sbstask sbsinput="@{sbs.input}" |
|
201 |
sysdefFile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" |
|
202 |
layerPatternSetRef="${sbs.patternset}" |
|
203 |
errorOutput="${sbs.log.file}.sbs_error.log" |
|
204 |
workingDir="${build.drive}/" |
|
205 |
failOnError="false" |
|
587 | 206 |
outputLog="${sbs.log.file}" /> |
217 | 207 |
</else> |
208 |
</if> |
|
209 |
<hlm:assertFileExists file="${sbs.log.file}"/> |
|
210 |
<hlm:assertFileExists file="${sbs.log.file}.sbs_error.log"/> |
|
179 | 211 |
<!-- run arm license checking / setting arm version only for arm config --> |
212 |
<echo message="sbs.log.file: ${sbs.log.file}" /> |
|
213 |
<hlm:sbsProcessOutputMacro sbs.log.file="${sbs.log.file}" |
|
214 |
sbs.ant.output.file="${sbs.log.file}" sbs.error.output.file="${sbs.log.file}.sbs_error.log"/> |
|
215 |
</sequential> |
|
216 |
</for> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
217 |
</then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
218 |
</if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
219 |
</target> |
217 | 220 |
|
221 |
||
179 | 222 |
<macrodef name="sbsProcessOutputMacro" uri="http://www.nokia.com/helium"> |
223 |
<attribute name="sbs.log.file" /> |
|
224 |
<attribute name="sbs.error.output.file" /> |
|
225 |
<attribute name="sbs.ant.output.file" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
226 |
<sequential> |
217 | 227 |
<var name="sbs.scan2.template" value="scan2_orm.html.ftl" /> |
228 |
<var name="base.sbs.log" value="" unset="true"/> |
|
229 |
<basename property="base.sbs.log" file="@{sbs.log.file}" /> |
|
230 |
<echo message="base.sbs.log: ${base.sbs.log}" /> |
|
179 | 231 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
232 |
<hlm:textmetadatainput> |
|
233 |
<fileset casesensitive="false" file="@{sbs.error.output.file}"/> |
|
588 | 234 |
<metadatafilterset refid="filterset.sbs.cli" /> |
179 | 235 |
</hlm:textmetadatainput> |
236 |
</hlm:metadatarecord> |
|
237 |
<basename property="base.sbs.ant.output.log" file="@{sbs.ant.output.file}" /> |
|
238 |
<hlm:signalMacro logfile="@{sbs.error.output.file}" |
|
239 |
signal.input="raptorErrorSignalInput" phase="compile"/> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
240 |
<!-- update the resultes to database --> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
241 |
<echo message="Metadata enabled, storing build status in database" /> |
179 | 242 |
<echo message="sbs log file :@{sbs.log.file}" /> |
243 |
<trycatch property="hlm-sbs.parser.thrown"> |
|
244 |
<try> |
|
217 | 245 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
587 | 246 |
<hlm:sbsmetadatainput> |
179 | 247 |
<fileset casesensitive="false" file="@{sbs.log.file}"/> |
248 |
<metadatafilterset refid="filterset.sbs" /> |
|
249 |
</hlm:sbsmetadatainput> |
|
250 |
</hlm:metadatarecord> |
|
251 |
</try> |
|
252 |
<catch> |
|
253 |
<if> |
|
254 |
<istrue value="${skip.sbs.parser.exception}" /> |
|
255 |
<then> |
|
217 | 256 |
<var name="sbs.scan2.template" value="scan2_text_orm.html.ftl" /> |
257 |
<hlm:metadatadelete database="${metadata.dbfile}"> |
|
179 | 258 |
<fileset casesensitive="false" file="@{sbs.log.file}"/> |
259 |
</hlm:metadatadelete> |
|
217 | 260 |
<hlm:metadatarecord database="${metadata.dbfile}" > |
179 | 261 |
<hlm:textmetadatainput> |
262 |
<fileset casesensitive="false" file="@{sbs.log.file}"/> |
|
217 | 263 |
<metadatafilterset refid="filterset.sbs" /> |
179 | 264 |
</hlm:textmetadatainput> |
265 |
</hlm:metadatarecord> |
|
266 |
</then> |
|
267 |
<else> |
|
587 | 268 |
<loadfile property="sbs.error.output" srcfile="@{sbs.error.output.file}" failonerror="false"/> |
269 |
<fail message="failed during raptor log parsing: might be due to invalid xml output from raptor ${hlm-sbs.parser.thrown}. ${sbs.error.output}" /> |
|
179 | 270 |
</else> |
271 |
</if> |
|
272 |
</catch> |
|
273 |
</trycatch> |
|
274 |
<fmpp sourceFile="${helium.dir}/tools/common/templates/log/${sbs.scan2.template}" |
|
217 | 275 |
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
|
276 |
<freemarkerLinks expandProperties="yes"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
277 |
macro: ${helium.dir}/tools/common/templates/macro |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
278 |
</freemarkerLinks> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
279 |
<data expandProperties="yes"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
280 |
dbPath: ${metadata.dbfile} |
587 | 281 |
logfilename: @{sbs.log.file} |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
282 |
ant: antProperties() |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
283 |
</data> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
284 |
</fmpp> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
285 |
<echo message="generating signal" /> |
217 | 286 |
<hlm:assertFileExists file="${build.log.dir}/${base.sbs.log}.scan2.html"/> |
287 |
<hlm:compileLogSignalMacro compile.summary.file="@{sbs.log.file}" |
|
179 | 288 |
error.limit="${build.errors.limit}" phase="compile"/> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
289 |
<!-- Blocks packaging configuration generation. --> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
290 |
<if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
291 |
<istrue value="${blocks.enabled}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
292 |
<then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
293 |
<mkdir dir="${blocks.config.dir}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
294 |
<exec executable="python"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
295 |
<arg value="-m"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
296 |
<arg value="packager.cli"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
297 |
<arg value="--epocroot=${build.drive}/" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
298 |
<arg value="--config=${blocks.config.dir}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
299 |
<arg value="--datasource=sbs" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
300 |
<arg value="-Dsbslog=${sbs.log.file}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
301 |
<arg value="-Dsysdef=${canonical.sysdef.file}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
302 |
<arg value="-Dthreads=20" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
303 |
<arg value="--updateData" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
304 |
</exec> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
305 |
</then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
306 |
</if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
307 |
</sequential> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
308 |
</macrodef> |
217 | 309 |
|
310 |
<scriptdef language="jython" name="getSbsHome" uri="http://www.nokia.com/helium"> |
|
311 |
<attribute name="property" /> |
|
312 |
if attributes.get("property") is None: |
|
313 |
raise Exception("property attribute has not been set.") |
|
314 |
if project.getProperty(attributes.get("property")) is None: |
|
315 |
import symbian.raptor |
|
316 |
sbs_home = symbian.raptor.getSBSHome() |
|
317 |
if sbs_home is not None: |
|
318 |
#self.log("Found SBS_HOME as " + sbs_home) |
|
319 |
project.setNewProperty(attributes.get("property"), sbs_home) |
|
320 |
</scriptdef> |
|
321 |
||
179 | 322 |
</project> |