changeset 9172:bc5c5336008b

Add gate test to check build-graal.xml is up to date.
author Roland Schatz <roland.schatz@oracle.com>
date Wed, 17 Apr 2013 11:02:23 +0200
parents ff622b1b2c94
children 626bc0fac6d9 f6a8efb8d104
files mx/commands.py
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mx/commands.py	Wed Apr 17 10:13:53 2013 +0200
+++ b/mx/commands.py	Wed Apr 17 11:02:23 2013 +0200
@@ -519,7 +519,7 @@
 
     out.close('project')
     
-    mx.update_file(args.buildfile, out.xml(indent='  ', newl='\n'))
+    return mx.update_file(args.buildfile, out.xml(indent='  ', newl='\n'))
 
 def buildvars(args):
     """Describes the variables that can be set by the -D option to the 'mx build' commmand"""
@@ -963,6 +963,12 @@
         t = Task('BuildJava')
         build(['--no-native', '--jdt-warning-as-error'])
         tasks.append(t.stop())
+
+        t = Task('Check build-graal.xml')
+        mx.log(time.strftime('%d %b %Y %H:%M:%S - Ensuring make/build-graal.xml file is up to date...'))
+        if initantbuild([]):
+            t.abort('Rerun "mx build" and check-in the modified make/build-graal.xml file.')
+        tasks.append(t.stop())
         
         t = Task('Checkstyle')
         if mx.checkstyle([]) != 0: