Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 15227:7be43cbf3568
mx: include generated sources in archived distribution sources
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 18 Apr 2014 13:38:26 +0200 |
parents | f1c66b738dae |
children | 1ea79f17ab95 |
comparison
equal
deleted
inserted
replaced
15226:f1c66b738dae | 15227:7be43cbf3568 |
---|---|
148 arcname = join(relpath, f).replace(os.sep, '/') | 148 arcname = join(relpath, f).replace(os.sep, '/') |
149 overwriteCheck(arc.zf, arcname, join(root, f)) | 149 overwriteCheck(arc.zf, arcname, join(root, f)) |
150 arc.zf.write(join(root, f), arcname) | 150 arc.zf.write(join(root, f), arcname) |
151 if srcArc.zf: | 151 if srcArc.zf: |
152 sourceDirs = p.source_dirs() | 152 sourceDirs = p.source_dirs() |
153 if p.source_gen_dir(): | |
154 sourceDirs.append(p.source_gen_dir()) | |
153 for srcDir in sourceDirs: | 155 for srcDir in sourceDirs: |
154 for root, _, files in os.walk(srcDir): | 156 for root, _, files in os.walk(srcDir): |
155 relpath = root[len(srcDir) + 1:] | 157 relpath = root[len(srcDir) + 1:] |
156 for f in files: | 158 for f in files: |
157 if f.endswith('.java'): | 159 if f.endswith('.java'): |