diff options
| author | 2020-06-23 21:44:42 +0000 | |
|---|---|---|
| committer | 2020-06-23 21:44:42 +0000 | |
| commit | 28d654952998aab41359980562ff2673fa2bc63e (patch) | |
| tree | 5b0842d42a6e31ec949a25977f6f4f2c1e0b48b5 /scripts/lint-project-xml.py | |
| parent | e176b5b92e6472230736740e1fcb798824848335 (diff) | |
| parent | c31efeb25cac61fd3c2af3fed5bedeca2d401994 (diff) | |
Merge "Set root dir in lint project.xml"
Diffstat (limited to 'scripts/lint-project-xml.py')
| -rwxr-xr-x | scripts/lint-project-xml.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lint-project-xml.py b/scripts/lint-project-xml.py index 7ab4f0150..38c57cadf 100755 --- a/scripts/lint-project-xml.py +++ b/scripts/lint-project-xml.py @@ -77,6 +77,8 @@ def parse_args(): help='mark the module as a test.') parser.add_argument('--cache_dir', dest='cache_dir', help='directory to use for cached file.') + parser.add_argument('--root_dir', dest='root_dir', + help='directory to use for root dir.') group = parser.add_argument_group('check arguments', 'later arguments override earlier ones.') group.add_argument('--fatal_check', dest='checks', action=check_action('fatal'), default=[], help='treat a lint issue as a fatal error.') @@ -162,6 +164,8 @@ def write_project_xml(f, args): f.write("<?xml version='1.0' encoding='utf-8'?>\n") f.write("<project>\n") + if args.root_dir: + f.write(" <root dir='%s' />\n" % args.root_dir) f.write(" <module name='%s' android='true' %sdesugar='full' >\n" % (args.name, "library='true' " if args.library else "")) if args.manifest: f.write(" <manifest file='%s' %s/>\n" % (args.manifest, test_attr)) |