comparison mx/commands.py @ 7533:29b0768b7ba6

added eclipseformat to the gate
author Doug Simon <doug.simon@oracle.com>
date Wed, 23 Jan 2013 16:49:55 +0100
parents 442668d41bc2
children a200d10867f1
comparison
equal deleted inserted replaced
7532:780269e56ddd 7533:29b0768b7ba6
773 if not args.cleanJava: 773 if not args.cleanJava:
774 cleanArgs.append('--no-java') 774 cleanArgs.append('--no-java')
775 clean(cleanArgs) 775 clean(cleanArgs)
776 tasks.append(t.stop()) 776 tasks.append(t.stop())
777 777
778 eclipse_exe = os.environ.get('ECLIPSE_EXE')
779 if eclipse_exe is not None:
780 t = Task('CodeFormatCheck')
781 if mx.eclipseformat(['-e', eclipse_exe]) != 0:
782 t.abort('Formatter modified files - run "mx eclipseformat", check in changes and repush')
783 tasks.append(t.stop())
784
778 t = Task('BuildJava') 785 t = Task('BuildJava')
779 build(['--no-native']) 786 build(['--no-native'])
780 tasks.append(t.stop()) 787 tasks.append(t.stop())
781 788
782 if exists('jacoco.exec'): 789 if exists('jacoco.exec'):