38 </exec> |
38 </exec> |
39 <hlm:assertFileExists file="@{output}"/> |
39 <hlm:assertFileExists file="@{output}"/> |
40 </sequential> |
40 </sequential> |
41 </macrodef> |
41 </macrodef> |
42 |
42 |
|
43 <!-- |
|
44 Generates compilation report for diamonds. |
|
45 --> |
43 <macrodef name="calculateErrorsFromLog" uri="http://www.nokia.com/helium"> |
46 <macrodef name="calculateErrorsFromLog" uri="http://www.nokia.com/helium"> |
44 <attribute name="logfile"/> |
|
45 <sequential> |
47 <sequential> |
46 <if> |
48 <if> |
47 <not> |
49 <not> |
48 <isset property="skip.diamonds"/> |
50 <isset property="skip.diamonds"/> |
49 </not> |
51 </not> |
50 <then> |
52 <then> |
51 <fmpp sourceFile="${helium.dir}/tools/common/templates/diamonds/faults_metadata_orm.ftl" |
53 <fmpp sourceFile="${helium.dir}/tools/common/templates/diamonds/faults_metadata_orm.ftl" |
52 outputfile="${diamonds.build.output.dir}/compile-main.xml"> |
54 outputfile="${diamonds.build.output.dir}/compile-main.xml"> |
53 <data expandProperties="yes"> |
55 <data expandProperties="yes"> |
54 dbPath: ${metadata.dbfile} |
56 dbPath: ${metadata.dbfile} |
55 logpath: @{logfile} |
|
56 ant: antProperties() |
57 ant: antProperties() |
57 </data> |
58 </data> |
58 </fmpp> |
59 </fmpp> |
59 </then> |
60 </then> |
60 </if> |
61 </if> |
64 <macrodef name="compileLogSignalMacro" uri="http://www.nokia.com/helium"> |
65 <macrodef name="compileLogSignalMacro" uri="http://www.nokia.com/helium"> |
65 <attribute name="compile.summary.file"/> |
66 <attribute name="compile.summary.file"/> |
66 <attribute name="error.limit"/> |
67 <attribute name="error.limit"/> |
67 <attribute name="phase" default="compile"/> |
68 <attribute name="phase" default="compile"/> |
68 <sequential> |
69 <sequential> |
69 <hlm:calculateErrorsFromLog logfile="@{compile.summary.file}" /> |
70 <hlm:calculateErrorsFromLog /> |
70 <hlm:metadataCountSeverity severity="ERROR" log="@{compile.summary.file}" |
71 <var name="build.errors.total" unset="true" /> |
71 db="${metadata.dbfile}" |
72 <var name="compile.result" unset="true" /> |
72 property="build.errors.total"/> |
73 <if> |
|
74 <equals arg1="${compile.signal.input}" arg2="compileCleanSignalInput" /> |
|
75 <then> |
|
76 <hlm:metadataCountSeverity severity="ERROR" log="@{compile.summary.file}" |
|
77 db="${metadata.dbfile}" |
|
78 countMissing="false" |
|
79 property="build.errors.total"/> |
|
80 </then> |
|
81 <else> |
|
82 <hlm:metadataCountSeverity severity="ERROR" log="@{compile.summary.file}" |
|
83 db="${metadata.dbfile}" |
|
84 property="build.errors.total"/> |
|
85 </else> |
|
86 </if> |
73 |
87 |
74 <echo>Errors after compile-main: ${build.errors.total}</echo> |
88 <echo>Errors after compile-main: ${build.errors.total}</echo> |
75 <echo message="${build.errors.limit}" /> |
89 <echo message="${build.errors.limit}" /> |
76 <echo message="@{error.limit}" /> |
90 <echo message="@{error.limit}" /> |
77 <if> |
91 <if> |
125 <attribute name="configuration"/> |
139 <attribute name="configuration"/> |
126 <attribute name="output"/> |
140 <attribute name="output"/> |
127 <attribute name="log"/> |
141 <attribute name="log"/> |
128 <sequential> |
142 <sequential> |
129 <preset.exec executable="perl" dir="${build.drive}/" failonerror="${failonerror}"> |
143 <preset.exec executable="perl" dir="${build.drive}/" failonerror="${failonerror}"> |
130 <arg value="${epocroot}epoc32/tools/build/genxml.pl"/> |
144 <arg value="${build.drive}/epoc32/tools/build/genxml.pl"/> |
131 <arg value="-o"/> |
145 <arg value="-o"/> |
132 <arg value="@{output}"/> |
146 <arg value="@{output}"/> |
133 <arg value="-l"/> |
147 <arg value="-l"/> |
134 <arg value="@{log}"/> <!-- ${build.log.dir}/${build.id}.@{configuration}_genxml.log --> |
148 <arg value="@{log}"/> <!-- ${build.log.dir}/${build.id}.@{configuration}_genxml.log --> |
135 <arg value="-s"/> |
149 <arg value="-s"/> |
161 <mkdir dir="${temp.build.dir}"/> |
175 <mkdir dir="${temp.build.dir}"/> |
162 <copy todir="${build.drive}/" verbose="true"> |
176 <copy todir="${build.drive}/" verbose="true"> |
163 <fileset dir="${helium.dir}/tools/common/dtd" includes="*.dtd"/> |
177 <fileset dir="${helium.dir}/tools/common/dtd" includes="*.dtd"/> |
164 </copy> |
178 </copy> |
165 <preset.exec executable="perl" dir="${build.drive}/" failonerror="${failonerror}"> |
179 <preset.exec executable="perl" dir="${build.drive}/" failonerror="${failonerror}"> |
166 <arg value="${epocroot}epoc32/tools/build/genxml.pl"/> |
180 <arg value="${build.drive}/epoc32/tools/build/genxml.pl"/> |
167 <arg value="-s"/> |
181 <arg value="-s"/> |
168 <arg value="${epocroot}"/> |
182 <arg value="${epocroot}"/> |
169 <arg value="-m"/> |
183 <arg value="-m"/> |
170 <arg value="@{output}"/> |
184 <arg value="@{output}"/> |
171 <arg line="@{input}"/> |
185 <arg line="@{input}"/> |
185 <attribute name="input"/> |
199 <attribute name="input"/> |
186 <attribute name="output"/> |
200 <attribute name="output"/> |
187 <attribute name="filter"/> |
201 <attribute name="filter"/> |
188 <sequential> |
202 <sequential> |
189 <preset.exec executable="perl" dir="${build.drive}/" failonerror="${failonerror}"> |
203 <preset.exec executable="perl" dir="${build.drive}/" failonerror="${failonerror}"> |
190 <arg value="${epocroot}epoc32/tools/build/genxml.pl"/> |
204 <arg value="${build.drive}/epoc32/tools/build/genxml.pl"/> |
191 <arg value="-s"/> |
205 <arg value="-s"/> |
192 <arg value="${epocroot}"/> |
206 <arg value="${epocroot}"/> |
193 <arg value="-m"/> |
207 <arg value="-m"/> |
194 <arg value="@{output}"/> |
208 <arg value="@{output}"/> |
195 <arg value="-f"/> |
209 <arg value="-f"/> |