comparison mx/commands.py @ 9824:6fa4b4933892

added check to gate that generated IDE configurations don't break the build
author Doug Simon <doug.simon@oracle.com>
date Sun, 26 May 2013 13:15:51 +0200
parents 8e33b4ebfef1
children 0f7ca53be929 2a091d2987bd
comparison
equal deleted inserted replaced
9823:9e6b6d5d6465 9824:6fa4b4933892
971 if not args.cleanJava: 971 if not args.cleanJava:
972 cleanArgs.append('--no-java') 972 cleanArgs.append('--no-java')
973 clean(cleanArgs) 973 clean(cleanArgs)
974 tasks.append(t.stop()) 974 tasks.append(t.stop())
975 975
976 t = Task('IDEConfigCheck')
977 mx.ideclean([])
978 mx.ideinit([])
979 tasks.append(t.stop())
980
976 eclipse_exe = os.environ.get('ECLIPSE_EXE') 981 eclipse_exe = os.environ.get('ECLIPSE_EXE')
977 if eclipse_exe is not None: 982 if eclipse_exe is not None:
978 t = Task('CodeFormatCheck') 983 t = Task('CodeFormatCheck')
979 if mx.eclipseformat(['-e', eclipse_exe]) != 0: 984 if mx.eclipseformat(['-e', eclipse_exe]) != 0:
980 t.abort('Formatter modified files - run "mx eclipseformat", check in changes and repush') 985 t.abort('Formatter modified files - run "mx eclipseformat", check in changes and repush')