Lines Matching refs:f
101 def write_project_xml(f, args): argument
104 f.write("<?xml version='1.0' encoding='utf-8'?>\n")
105 f.write("<project>\n")
107 f.write(" <root dir='%s' />\n" % args.root_dir)
108 …f.write(" <module name='%s' android='true' %sdesugar='full' >\n" % (args.name, "library='true' " …
110 f.write(" <manifest file='%s' %s/>\n" % (args.manifest, test_attr))
112 f.write(" <merged-manifest file='%s' %s/>\n" % (args.merged_manifest, test_attr))
115 f.write(" <src file='%s' %s/>\n" % (src, test_attr))
118 f.write(" <src file='%s' generated='true' %s/>\n" % (src, test_attr))
121 f.write(" <resource file='%s' %s/>\n" % (res, test_attr))
123 f.write(" <classes jar='%s' />\n" % classes)
125 f.write(" <classpath jar='%s' />\n" % classpath)
127 f.write(" <lint-checks jar='%s' />\n" % extra)
128 f.write(" </module>\n")
130 f.write(" <cache dir='%s'/>\n" % args.cache_dir)
131 f.write("</project>\n")
134 def write_config_xml(f, args): argument
135 f.write("<?xml version='1.0' encoding='utf-8'?>\n")
136 f.write("<lint>\n")
138 f.write(" <issue id='%s' severity='%s' />\n" % (check[1], check[0]))
139 f.write("</lint>\n")
167 with open(args.project_out, 'w') as f:
168 write_project_xml(f, args)
171 with open(args.config_out, 'w') as f:
172 write_config_xml(f, args)