diff -r b6f8d38305f2 -r 5ad27ebafc22 buildframework/helium/tools/publish/publish.ant.xml --- a/buildframework/helium/tools/publish/publish.ant.xml Thu Mar 25 12:47:55 2010 +0000 +++ b/buildframework/helium/tools/publish/publish.ant.xml Thu Mar 25 14:10:11 2010 +0000 @@ -20,17 +20,41 @@ ============================================================================ --> + Zipping, delta zipping and copying targets + + - + + + + + @@ -71,6 +95,9 @@ + @@ -110,6 +137,10 @@ + @@ -128,30 +159,36 @@ --> - + - + + 0: filelist = [] @@ -159,7 +196,7 @@ if config.get_boolean("grace.metadata", False): metadata = os.path.join(config['archives.dir'], config['name']+ ".metadata.xml") if os.path.exists(metadata): - self.log(str("Found %s" % metadata)) + LOGGER.info("Found %s" % metadata) filelist.append(metadata) merger = None @@ -167,22 +204,22 @@ if os.path.exists(metadata_main): merger = symrec.MetadataMerger(metadata_main) merge_filelist(merger, filelist) - self.log(str("Writing %s" % metadata_main)) + LOGGER.info(str("Writing %s" % metadata_main)) merger.save() elif len(filelist) > 0: input = filelist.pop(0) merger = symrec.MetadataMerger(input) merge_filelist(merger, filelist) - self.log(str("Writing %s" % metadata_main)) + LOGGER.info(str("Writing %s" % metadata_main)) merger.save(metadata_main) os.unlink(input) except Exception, e: - self.log('ERROR: %s' % e) - traceback.print_exc() - # Let's propagate at the moment - raise e + LOGGER.error('ERROR: %s' % e) + sys.exit(-1) ]]> - + + + - + - + + + - + + + - + + + - + + + @@ -294,40 +346,53 @@ + + - + + + + + - + + - + emake.root.to.append=${emake.root.to.append} - + + @@ -358,12 +423,12 @@ - + - + @@ -372,15 +437,15 @@ - + - - + @@ -390,14 +455,14 @@ - + - + - @@ -410,12 +475,16 @@ + 0: +if len(configs) > 0 or not failonemptyconfig: prebuilder = archive.ArchivePreBuilder(configuration.ConfigurationSet(configs), config_type, outputtype) if os.sep == '\\': toAppendEmakeRoot = prebuilder.checkRootDirValue(builder, config_parsed_filename, project.getProperty('build.drive'), config_type) if toAppendEmakeRoot is not None: project.setProperty("emake.root.to.append", str(toAppendEmakeRoot)) prebuilder.writeTopLevel(os.path.join(project.getProperty('build.drive') + os.sep, 'ZIP_' + config_type + outputext), project.getProperty('temp.build.dir'), config_parsed_filename) - else: raise Exception('There are no archive configs to build. Looked for %s' % config_type) ]]> @@ -472,24 +540,6 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - + - + - + - + - + @@ -648,7 +725,7 @@ - + delta.zip.temp.location: ${delta.zip.temp.location} @@ -665,6 +742,10 @@ + build MD5 started @@ -724,6 +805,10 @@ + import re @@ -766,7 +851,7 @@ - + @@ -776,16 +861,58 @@ by the "final" target last. --> - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - +