diff mx/commands.py @ 4247:3f6c6e61614e

Changed 'mx build' such that all Java sources for a project are compiled together instead of by source directory.
author Doug Simon <doug.simon@oracle.com>
date Mon, 09 Jan 2012 14:12:53 +0100
parents a69889e5a8a5
children 67e88b7624d5
line wrap: on
line diff
--- a/mx/commands.py	Sat Jan 07 16:05:07 2012 -0800
+++ b/mx/commands.py	Mon Jan 09 14:12:53 2012 +0100
@@ -40,7 +40,7 @@
 
 def clean(args):
     """cleans the GraalVM source tree"""
-    opts = mx.clean(args)
+    opts = mx.clean(args, parser=ArgumentParser(prog='mx clean'))
     if opts.native:
         os.environ.update(ARCH_DATA_MODEL='64', LANG='C', HOTSPOT_BUILD_JOBS='16')
         mx.run([mx.gmake_cmd(), 'clean'], cwd=join(_graal_home, 'make'))
@@ -585,7 +585,12 @@
                 if not test.test('-graal'):
                     t.abort(test.group + ' ' + test.name + ' Failed')
                 t.stop()
+    except KeyboardInterrupt:
+        total.abort(1)
+    
     except Exception as e:
+        import traceback
+        traceback.print_exc()
         total.abort(str(e))
 
     total.stop()