Lines Matching refs:args
96 def write_project_xml(f, args): argument
97 test_attr = "test='true' " if args.test else ""
101 if args.root_dir:
102 f.write(" <root dir='%s' />\n" % args.root_dir)
103 …<module name='%s' android='true' %sdesugar='full' >\n" % (args.name, "library='true' " if args.lib…
104 if args.manifest:
105 f.write(" <manifest file='%s' %s/>\n" % (args.manifest, test_attr))
106 if args.merged_manifest:
107 f.write(" <merged-manifest file='%s' %s/>\n" % (args.merged_manifest, test_attr))
108 for src_file in args.srcs:
111 for src_file in args.generated_srcs:
114 for res_file in args.resources:
117 for classes in args.classes:
119 for classpath in args.classpath:
121 for extra in args.extra_checks_jars:
124 if args.cache_dir:
125 f.write(" <cache dir='%s'/>\n" % args.cache_dir)
129 def write_config_xml(f, args): argument
132 for check in args.checks:
139 args = parse_args()
141 if args.project_out:
142 with open(args.project_out, 'w') as f:
143 write_project_xml(f, args)
145 if args.config_out:
146 with open(args.config_out, 'w') as f:
147 write_config_xml(f, args)