63 <macrodef name="compileLogSignalMacro" uri="http://www.nokia.com/helium"> |
63 <macrodef name="compileLogSignalMacro" uri="http://www.nokia.com/helium"> |
64 <attribute name="compile.summary.file"/> |
64 <attribute name="compile.summary.file"/> |
65 <attribute name="error.limit"/> |
65 <attribute name="error.limit"/> |
66 <attribute name="phase" default="compile"/> |
66 <attribute name="phase" default="compile"/> |
67 <sequential> |
67 <sequential> |
|
68 <var name="build.errors.total" unset="true" /> |
|
69 <var name="compile.result" unset="true" /> |
68 <hlm:metadataCountSeverity severity="ERROR" log="@{compile.summary.file}" |
70 <hlm:metadataCountSeverity severity="ERROR" log="@{compile.summary.file}" |
69 db="${metadata.dbfile}" |
71 db="${metadata.dbfile}" |
70 property="build.errors.total"/> |
72 property="build.errors.total"/> |
71 |
73 |
72 <echo>Errors after compile-main: ${build.errors.total}</echo> |
74 <echo>Errors after compile-main: ${build.errors.total}</echo> |
149 <macrodef name="compileGenxmlMergeMacro" uri="http://www.nokia.com/helium"> |
151 <macrodef name="compileGenxmlMergeMacro" uri="http://www.nokia.com/helium"> |
150 <attribute name="input"/> |
152 <attribute name="input"/> |
151 <attribute name="output"/> |
153 <attribute name="output"/> |
152 <attribute name="logfile"/> |
154 <attribute name="logfile"/> |
153 <sequential> |
155 <sequential> |
|
156 <basename property="base.merge.log" file="@{logfile}"/> |
|
157 <hlm:tempRecordStartMacro name="${base.merge.log}"/> |
154 <echo message="input:@{input}" /> |
158 <echo message="input:@{input}" /> |
155 <echo message="output:@{output}" /> |
159 <echo message="output:@{output}" /> |
156 <mkdir dir="${compile.log.dir}"/> |
160 <mkdir dir="${compile.log.dir}"/> |
157 <mkdir dir="${temp.build.dir}"/> |
161 <mkdir dir="${temp.build.dir}"/> |
158 <copy todir="${build.drive}/" verbose="true"> |
162 <copy todir="${build.drive}/" verbose="true"> |
159 <fileset dir="${helium.dir}/tools/common/dtd" includes="*.dtd"/> |
163 <fileset dir="${helium.dir}/tools/common/dtd" includes="*.dtd"/> |
160 </copy> |
164 </copy> |
161 <preset.exec executable="perl" dir="${build.drive}/" failonerror="${failonerror}" output="@{logfile}"> |
165 <preset.exec executable="perl" dir="${build.drive}/" failonerror="${failonerror}"> |
162 <arg value="${epocroot}epoc32/tools/build/genxml.pl"/> |
166 <arg value="${epocroot}epoc32/tools/build/genxml.pl"/> |
163 <arg value="-s"/> |
167 <arg value="-s"/> |
164 <arg value="${epocroot}"/> |
168 <arg value="${epocroot}"/> |
165 <arg value="-m"/> |
169 <arg value="-m"/> |
166 <arg value="@{output}"/> |
170 <arg value="@{output}"/> |
167 <arg line="@{input}"/> |
171 <arg line="@{input}"/> |
168 </preset.exec> |
172 </preset.exec> |
169 <if> |
173 <hlm:tempRecordStopMacro name="${base.merge.log}" phase="compile" filterref="filterset.genxml.merge"/> |
170 <not> |
174 <hlm:signalMacro |
171 <available file="@{output}"/> |
175 logfile="${build.cache.log.dir}/${base.merge.log}" |
172 </not> |
176 phase="compile" |
173 <then> |
177 signal.input="canonicalSysDefFailSignalInput" /> |
174 <echo file="@{logfile}" message="ERROR: Check @{input}" append="true"/> |
|
175 <!-- Todo: metadata: Make sure that logfilter is added to the filterset --> |
|
176 <hlm:metadatarecord database="${metadata.dbfile}"> |
|
177 <hlm:textmetadatainput> |
|
178 <fileset casesensitive="false" file="@{logfile}" /> |
|
179 <metadatafilterset refid="filterset.genxml.merge" /> |
|
180 </hlm:textmetadatainput> |
|
181 </hlm:metadatarecord> |
|
182 <hlm:generateBuildStatus file="${build.id}.sysdef_GenxmlMerge.log" /> |
|
183 <hlm:signal name="canonicalSysDefFailSignal" result="1" > |
|
184 <signalNotifierInput> |
|
185 <signalInput refid="canonicalSysDefFailSignalInput" > |
|
186 <notifierInput> |
|
187 <fileset dir="${build.log.dir}" > |
|
188 <include name="**/${build.id}.sysdef_GenxmlMerge.log*" /> |
|
189 </fileset> |
|
190 </notifierInput> |
|
191 </signalInput> |
|
192 </signalNotifierInput> |
|
193 </hlm:signal> |
|
194 </then> |
|
195 </if> |
|
196 |
|
197 <hlm:assertFileExists file="@{output}"/> |
|
198 </sequential> |
178 </sequential> |
199 </macrodef> |
179 </macrodef> |
200 |
180 |
201 <!-- |
181 <!-- |
202 This macro uses genxml to filter a sysdef file. |
182 This macro uses genxml to filter a sysdef file. |