buildframework/helium/tools/relnotes/relnotes.ant.xml
changeset 646 a010554f8551
parent 645 b8d81fa19e7d
equal deleted inserted replaced
644:01667c882e63 646:a010554f8551
   205     
   205     
   206     if cmproject == None:
   206     if cmproject == None:
   207         print 'Error: ' + waroot + ' must be a synergy project and still be in database'
   207         print 'Error: ' + waroot + ' must be a synergy project and still be in database'
   208     else:
   208     else:
   209         project.setProperty("ccm.toplevel.project", str(cmproject))
   209         project.setProperty("ccm.toplevel.project", str(cmproject))
   210     session.close()
   210 finally:
   211 except Exception, ex:
       
   212     print 'Caught exception: ' + str(ex)
       
   213     traceback.print_exc()
       
   214     if session:
   211     if session:
   215         session.close()
   212         session.close()
   216         </script>
   213         </script>
   217         <hlm:python outputproperty="ccm.toplevel.baseline">
   214         <hlm:python outputproperty="ccm.toplevel.baseline">
   218 import traceback
   215 import traceback
   228     engine = ant.get_property(r'${ccm.engine.host}')
   225     engine = ant.get_property(r'${ccm.engine.host}')
   229     dbpath = ant.get_property(r'${ccm.database.path}')
   226     dbpath = ant.get_property(r'${ccm.database.path}')
   230     session = ccmutil.get_session(database, username, password, engine, dbpath)
   227     session = ccmutil.get_session(database, username, password, engine, dbpath)
   231     cmproject = session.create(ant.get_property(r'${ccm.toplevel.project}'))
   228     cmproject = session.create(ant.get_property(r'${ccm.toplevel.project}'))
   232     print cmproject.baseline
   229     print cmproject.baseline
   233     session.close()
   230 finally:
   234 except Exception, ex:
       
   235     print 'Caught exception: ' + str(ex)
       
   236     traceback.print_exc()
       
   237     if session:
   231     if session:
   238         session.close()
   232         session.close()
   239         </hlm:python>
   233         </hlm:python>
   240     </target>
   234     </target>
   241     
   235