diff -r 238f4cb8391f -r ad8ffc8e1982 buildframework/helium/tools/release/scm_release.ant.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/buildframework/helium/tools/release/scm_release.ant.xml Mon Jul 26 11:04:29 2010 +0800 @@ -0,0 +1,103 @@ + + + + + + SCM Release publishing. + + + + + + + + + + + + + + + +import preparation +import configuration +import traceback +import logging +import ant +import sys +import os.path + +# enabling logging +logging.basicConfig(level=logging.INFO) + +builder = None +try: + configBuilder = configuration.NestedConfigurationBuilder(open(ant.get_property(r'${prep.delivery.conf.parsed}'), 'r')) + configSet = configBuilder.getConfiguration() + password = ant.get_property(r'${ccm.user.password}') + builder = preparation.PreparationBuilder(configSet.getConfigurations(), ant.get_property(r'${ccm.user.login}'), password, cache=ant.get_property(r'${ccm.cache.xml}')) + builder.extract_release_data(r'${release.log.dir}/${build.id}_releasable.xml') + builder.close() +except Exception, e: + print "ERROR: error found during preparation phase:" + for l in traceback.format_exc().splitlines(False): + print "ERROR: %s" % l + print "ERROR: this is a critical error, build will fail now:" + for l in str(e).splitlines(False): + print "ERROR: %s" % l + if builder != None: + builder.close() + sys.exit(-1) +sys.exit(0) + + + + + + + + + + + + data: xml(${release.log.dir}/${build.id}_releasable.xml) + ant: antProperties() + + + + + + + \ No newline at end of file