diff mx/commands.py @ 5153:57546200db29

fixed comment and error message in commands.py
author Doug Simon <doug.simon@oracle.com>
date Fri, 23 Mar 2012 13:33:56 +0100
parents cfdb3c24bd6c
children 6fbf12b8e572
line wrap: on
line diff
--- a/mx/commands.py	Fri Mar 23 11:48:39 2012 +0100
+++ b/mx/commands.py	Fri Mar 23 13:33:56 2012 +0100
@@ -437,9 +437,7 @@
             if not 'Xusage.txt' in line:
                 sys.stderr.write(line + os.linesep)
                 
-        # Update graal_paths.hpp
-        #for p in mx.project('com.oracle.max.graal.hotspot').all_deps([], False):
-        #    out.write('    prepend_to_graal_classpath(scp_compiler, graal_dir, "' + p.name + '");\n')
+        # Check that the declaration of graal_projects in arguments.cpp is up to date
         argumentsCpp = join(_graal_home, 'src', 'share', 'vm', 'runtime', 'arguments.cpp')
         assert exists(argumentsCpp), 'File does not exist: ' + argumentsCpp
         with open(argumentsCpp) as fp:
@@ -454,9 +452,9 @@
             missing = expected - actual
             extra = actual - expected
             if len(missing) != 0:
-                mx.abort(fp.name + ':' + str(source[:start].count('\n') + 1) + ': add missing projects to declaration: ' + ','.join(missing))
+                mx.abort(fp.name + ':' + str(source[:start].count('\n') + 1) + ': add missing projects to declaration:\n    ' + '\n    '.join(missing))
             if len(extra) != 0:
-                mx.abort(fp.name + ':' + str(source[:start].count('\n') + 1) + ': remove projects from declaration: ' + ','.join(extra))
+                mx.abort(fp.name + ':' + str(source[:start].count('\n') + 1) + ': remove projects from declaration:\n    ' + '\n    '.join(extra))
                 
         if platform.system() == 'Windows':
             compilelogfile = _graal_home + '/graalCompile.log'