Mercurial > hg > truffle
comparison mxtool/mx.py @ 7532:780269e56ddd
eclipseformat is also applied to package-info.java files
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 23 Jan 2013 16:42:13 +0100 |
parents | 4584ca2618d5 |
children | 29b0768b7ba6 |
comparison
equal
deleted
inserted
replaced
7531:3417a9177425 | 7532:780269e56ddd |
---|---|
1523 log('[no Eclipse Code Formatter preferences at {0} - skipping]'.format(batch.path)) | 1523 log('[no Eclipse Code Formatter preferences at {0} - skipping]'.format(batch.path)) |
1524 continue | 1524 continue |
1525 | 1525 |
1526 for sourceDir in sourceDirs: | 1526 for sourceDir in sourceDirs: |
1527 for root, _, files in os.walk(sourceDir): | 1527 for root, _, files in os.walk(sourceDir): |
1528 for f in [join(root, name) for name in files if name.endswith('.java') and name != 'package-info.java']: | 1528 for f in [join(root, name) for name in files if name.endswith('.java')]: |
1529 batch.javafiles.append(FileInfo(f)) | 1529 batch.javafiles.append(FileInfo(f)) |
1530 if len(batch.javafiles) == 0: | 1530 if len(batch.javafiles) == 0: |
1531 log('[no Java sources in {0} - skipping]'.format(p.name)) | 1531 log('[no Java sources in {0} - skipping]'.format(p.name)) |
1532 continue | 1532 continue |
1533 | 1533 |