changeset 15818:718034423138

mxtool: fix archive subcommand such that it will return a successful returncode
author Bernhard Urban <bernhard.urban@jku.at>
date Wed, 21 May 2014 15:17:21 +0200
parents 8b24f4684aa0
children 2460aed6c899
files mxtool/mx.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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, '<class name patterns>'],