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