Mercurial > hg > truffle
comparison mxtool/mx.py @ 5709:24347f3b605f
fixed javadoc command on Windows
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 27 Jun 2012 19:09:23 +0100 |
parents | 6f2ccb483d96 |
children | 8d31a849ca97 |
comparison
equal
deleted
inserted
replaced
5708:1c7852e6a39a | 5709:24347f3b605f |
---|---|
2011 | 2011 |
2012 def find_packages(sourceDirs, pkgs=set()): | 2012 def find_packages(sourceDirs, pkgs=set()): |
2013 for sourceDir in sourceDirs: | 2013 for sourceDir in sourceDirs: |
2014 for root, _, files in os.walk(sourceDir): | 2014 for root, _, files in os.walk(sourceDir): |
2015 if len([name for name in files if name.endswith('.java')]) != 0: | 2015 if len([name for name in files if name.endswith('.java')]) != 0: |
2016 pkg = root[len(sourceDir) + 1:].replace('/','.') | 2016 pkg = root[len(sourceDir) + 1:].replace(os.sep,'.') |
2017 if (len(packages) == 0) | (pkg in packages): | 2017 if len(packages) == 0 or pkg in packages: |
2018 pkgs.add(pkg) | 2018 pkgs.add(pkg) |
2019 return pkgs | 2019 return pkgs |
2020 | 2020 |
2021 extraArgs = [a.lstrip('@') for a in args.extra_args] | 2021 extraArgs = [a.lstrip('@') for a in args.extra_args] |
2022 if args.argfile is not None: | 2022 if args.argfile is not None: |