diff -r 59bb7c4d6172 -r 0f5e3a7fb6af buildframework/helium/tools/relnotes/relnotes.ant.xml --- a/buildframework/helium/tools/relnotes/relnotes.ant.xml Fri Feb 05 11:59:41 2010 +0000 +++ b/buildframework/helium/tools/relnotes/relnotes.ant.xml Thu Mar 04 15:10:37 2010 +0200 @@ -20,6 +20,7 @@ ============================================================================ --> + Generates a release note by modifying a template (that you can edit yourself) with @@ -29,23 +30,83 @@ * Adds table of errors and warnings * Generates list of baselines, projects and tasks used + + + + + + + + + + + + + + + + - - - + + - + if session: + session.close() + + import traceback import ant import logging @@ -154,43 +228,62 @@ except Exception, ex: print 'Caught exception: ' + str(ex) traceback.print_exc() - + if session: + session.close() + + + - - - + + + + + + + import amara import ant -bomfile = open(r"${temp.build.dir}/${build.id}_BOM.xml") +bomfile = open(r"${build.log.dir}/${build.id}_bom.xml") bom = amara.parse(bomfile) for p in bom.bom.content.project: - if (str(p.name).startswith(ant.get_property(r'${project.startswith}'))): + if (str(p.name).startswith(ant.get_property(r'@{startsWith}'))): print str(p.name) bomfile.close() - - - - + + + + + - + - + + + + + + + import amara import ant import bomtofile import ccmutil -bomfile = open(r"${temp.build.dir}/${build.id}_BOM.xml") +bomfile = open(r"${build.log.dir}/${build.id}_bom.xml") bom = amara.parse(bomfile) -session = ccmutil.get_session(ant.get_property(r'${ccm.database}'), ant.get_property(r'${ccm.user.login}'), ant.get_property(r'${ccm.user.password}'), ant.get_property(r'${ccm.engine.host}'), ant.get_property(r'${ccm.database.path}')) +password = ant.get_property(r'${ccm.user.password}') +session = ccmutil.get_session(ant.get_property(r'${ccm.database}'), ant.get_property(r'${ccm.user.login}'), password, ant.get_property(r'${ccm.engine.host}'), ant.get_property(r'${ccm.database.path}')) for p in bom.bom.content.project: if p.name == ant.get_property(r'${ccm.toplevel.project}'): bomwriter = bomtofile.BOMWriter(session, 'MC', p, ant.get_property(r'${releasenotes.output.dir}')) @@ -204,25 +297,34 @@ bomwriter.writetasks() session.close() bomfile.close() - + + + - + - - + + - + - + + + + import ccm #check for ccm session leaks assert (len(ccm.running_sessions()) == 0) - + + +