equal
deleted
inserted
replaced
100 <!-- Location of scan2log HTML file |
100 <!-- Location of scan2log HTML file |
101 @type string |
101 @type string |
102 @scope private |
102 @scope private |
103 --> |
103 --> |
104 <property name="releasenotes.scan2log" value="${build.log.dir}/${build.id}.${product.family}_scan2.html"/> |
104 <property name="releasenotes.scan2log" value="${build.log.dir}/${build.id}.${product.family}_scan2.html"/> |
|
105 |
|
106 |
|
107 <!-- Is it required to check ccm leaks --> |
|
108 <condition property="check.ccm.leaks"> |
|
109 <and> |
|
110 <isset property="hlm.enable.asserts"/> |
|
111 <istrue value="${ccm.enabled}"/> |
|
112 </and> |
|
113 </condition> |
105 |
114 |
106 <import file="${relnotes.config.dir}/relnotes_properties.ant.xml" optional="true"/> |
115 <import file="${relnotes.config.dir}/relnotes_properties.ant.xml" optional="true"/> |
107 |
116 |
108 <!-- @scope private --> |
117 <!-- @scope private --> |
109 <target name="release-notes-variant-configuration" depends="imaker-merge-rom-xml"> |
118 <target name="release-notes-variant-configuration" depends="imaker-merge-rom-xml"> |
171 </target> |
180 </target> |
172 |
181 |
173 <!-- Find project and baseline of what is running helium |
182 <!-- Find project and baseline of what is running helium |
174 @scope private |
183 @scope private |
175 --> |
184 --> |
176 <target name="release-notes-getcmprojectname"> |
185 <target name="release-notes-getcmprojectname" if="internal.ccm.enabled"> |
177 <if> |
186 <script language="jython" setbeans="false"> |
178 <istrue value="${ccm.enabled}" /> |
|
179 <then> |
|
180 <script language="jython" setbeans="false"> |
|
181 import ccm.extra |
187 import ccm.extra |
182 import traceback |
188 import traceback |
183 import os |
189 import os |
184 import logging |
190 import logging |
185 import ccmutil |
191 import ccmutil |
205 except Exception, ex: |
211 except Exception, ex: |
206 print 'Caught exception: ' + str(ex) |
212 print 'Caught exception: ' + str(ex) |
207 traceback.print_exc() |
213 traceback.print_exc() |
208 if session: |
214 if session: |
209 session.close() |
215 session.close() |
210 </script> |
216 </script> |
211 <hlm:python outputproperty="ccm.toplevel.baseline"> |
217 <hlm:python outputproperty="ccm.toplevel.baseline"> |
212 import traceback |
218 import traceback |
213 import ant |
219 import ant |
214 import logging |
220 import logging |
215 import ccmutil |
221 import ccmutil |
216 logging.disable(logging.INFO) |
222 logging.disable(logging.INFO) |
228 except Exception, ex: |
234 except Exception, ex: |
229 print 'Caught exception: ' + str(ex) |
235 print 'Caught exception: ' + str(ex) |
230 traceback.print_exc() |
236 traceback.print_exc() |
231 if session: |
237 if session: |
232 session.close() |
238 session.close() |
233 </hlm:python> |
239 </hlm:python> |
234 </then> |
|
235 </if> |
|
236 </target> |
240 </target> |
237 |
241 |
238 <!-- |
242 <!-- |
239 Look 'startsWith' and find complete CM name |
243 Look 'startsWith' and find complete CM name |
240 Output property: '{startsWith}.project'. |
244 Output property: '{startsWith}.project'. |
265 </macrodef> |
269 </macrodef> |
266 |
270 |
267 <!-- Write projects, baselines and task list for MC and IBUSAL |
271 <!-- Write projects, baselines and task list for MC and IBUSAL |
268 @scope private |
272 @scope private |
269 --> |
273 --> |
270 <target name="release-notes-ccm" depends="get-ccm-password,release-notes-getcmprojectname,create-bom"> |
274 <target name="release-notes-ccm" depends="get-ccm-password,release-notes-getcmprojectname,create-bom" if="internal.ccm.enabled"> |
271 <if> |
275 <if> |
272 <and> |
276 <available file="${build.log.dir}/${build.id}_bom.xml" /> |
273 <istrue value="${ccm.enabled}" /> |
|
274 <available file="${build.log.dir}/${build.id}_bom.xml" /> |
|
275 </and> |
|
276 <then> |
277 <then> |
277 <hlm:python> |
278 <hlm:python> |
278 import amara |
279 import amara |
279 import ant |
280 import ant |
280 import bomtofile |
281 import bomtofile |
312 <arg value="${releasenotes.output.dir}/icdicf.txt"/> |
313 <arg value="${releasenotes.output.dir}/icdicf.txt"/> |
313 </exec> |
314 </exec> |
314 </target> |
315 </target> |
315 |
316 |
316 <!-- @scope private --> |
317 <!-- @scope private --> |
317 <target name="release-notes-test" if="hlm.enable.asserts"> |
318 <target name="release-notes-test" if="check.ccm.leaks"> |
318 <if> |
319 <hlm:python> |
319 <istrue value="${ccm.enabled}" /> |
|
320 <then> |
|
321 <hlm:python> |
|
322 import ccm |
320 import ccm |
323 #check for ccm session leaks |
321 #check for ccm session leaks |
324 assert (len(ccm.running_sessions()) == 0) |
322 assert (len(ccm.running_sessions()) == 0) |
325 </hlm:python> |
323 </hlm:python> |
326 </then> |
|
327 </if> |
|
328 </target> |
324 </target> |
329 |
325 |
330 <!-- |
326 <!-- |
331 Generates a product release note based on a template in config dir |
327 Generates a product release note based on a template in config dir |
332 --> |
328 --> |