comparison mxtool/mx.py @ 21776:0c60e14e7796

include package-info.java in mx driven Java compilation
author Doug Simon <doug.simon@oracle.com>
date Mon, 08 Jun 2015 11:47:32 +0200
parents b5bbf03bc17a
children d013bb1cbf9f
comparison
equal deleted inserted replaced
21775:b0df81ea5b20 21776:0c60e14e7796
2822 2822
2823 javafilelist = [] 2823 javafilelist = []
2824 nonjavafiletuples = [] 2824 nonjavafiletuples = []
2825 for sourceDir in sourceDirs: 2825 for sourceDir in sourceDirs:
2826 for root, _, files in os.walk(sourceDir): 2826 for root, _, files in os.walk(sourceDir):
2827 javafiles = [join(root, name) for name in files if name.endswith('.java') and name != 'package-info.java'] 2827 javafiles = [join(root, name) for name in files if name.endswith('.java')]
2828 javafilelist += javafiles 2828 javafilelist += javafiles
2829 2829
2830 nonjavafiletuples += [(sourceDir, [join(root, name) for name in files if not name.endswith('.java')])] 2830 nonjavafiletuples += [(sourceDir, [join(root, name) for name in files if not name.endswith('.java')])]
2831 2831
2832 if not buildReason: 2832 if not buildReason: