# HG changeset patch # User Bernhard Urban # Date 1400678241 -7200 # Node ID 718034423138e906e5df3266639f12473275bf55 # Parent 8b24f4684aa085628290d105fcb4c2c57e2a455b mxtool: fix archive subcommand such that it will return a successful returncode diff -r 8b24f4684aa0 -r 718034423138 mxtool/mx.py --- a/mxtool/mx.py Tue May 20 17:26:27 2014 +0200 +++ b/mxtool/mx.py Wed May 21 15:17:21 2014 +0200 @@ -2625,6 +2625,10 @@ # Atomic on Unix shutil.move(self.tmpPath, self.path) +def _archive(args): + archive(args) + return 0 + def archive(args): """create jar files for projects and distributions""" parser = ArgumentParser(prog='mx archive') @@ -2642,6 +2646,7 @@ p = project(name) archives.append(p.make_archive()) + logv("generated archives: " + str(archives)) return archives def canonicalizeprojects(args): @@ -4694,7 +4699,7 @@ 'ideclean': [ideclean, ''], 'ideinit': [ideinit, ''], 'intellijinit': [intellijinit, ''], - 'archive': [archive, '[options]'], + 'archive': [_archive, '[options]'], 'projectgraph': [projectgraph, ''], 'pylint': [pylint, ''], 'javap': [javap, ''],