Mercurial > hg > truffle
comparison mx/commands.py @ 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 | f0fc8329bf98 |
children | 0b7d9bcc0f44 |
comparison
equal
deleted
inserted
replaced
9171:ff622b1b2c94 | 9172:bc5c5336008b |
---|---|
517 out.element('delete', {'file' : '${jar.file}'}) | 517 out.element('delete', {'file' : '${jar.file}'}) |
518 out.close('target') | 518 out.close('target') |
519 | 519 |
520 out.close('project') | 520 out.close('project') |
521 | 521 |
522 mx.update_file(args.buildfile, out.xml(indent=' ', newl='\n')) | 522 return mx.update_file(args.buildfile, out.xml(indent=' ', newl='\n')) |
523 | 523 |
524 def buildvars(args): | 524 def buildvars(args): |
525 """Describes the variables that can be set by the -D option to the 'mx build' commmand""" | 525 """Describes the variables that can be set by the -D option to the 'mx build' commmand""" |
526 | 526 |
527 buildVars = { | 527 buildVars = { |
961 tasks.append(t.stop()) | 961 tasks.append(t.stop()) |
962 | 962 |
963 t = Task('BuildJava') | 963 t = Task('BuildJava') |
964 build(['--no-native', '--jdt-warning-as-error']) | 964 build(['--no-native', '--jdt-warning-as-error']) |
965 tasks.append(t.stop()) | 965 tasks.append(t.stop()) |
966 | |
967 t = Task('Check build-graal.xml') | |
968 mx.log(time.strftime('%d %b %Y %H:%M:%S - Ensuring make/build-graal.xml file is up to date...')) | |
969 if initantbuild([]): | |
970 t.abort('Rerun "mx build" and check-in the modified make/build-graal.xml file.') | |
971 tasks.append(t.stop()) | |
966 | 972 |
967 t = Task('Checkstyle') | 973 t = Task('Checkstyle') |
968 if mx.checkstyle([]) != 0: | 974 if mx.checkstyle([]) != 0: |
969 t.abort('Checkstyle warnings were found') | 975 t.abort('Checkstyle warnings were found') |
970 tasks.append(t.stop()) | 976 tasks.append(t.stop()) |