Lines Matching refs:f
96 def write_project_xml(f, args): argument
99 f.write("<?xml version='1.0' encoding='utf-8'?>\n")
100 f.write("<project>\n")
102 f.write(" <root dir='%s' />\n" % args.root_dir)
103 …f.write(" <module name='%s' android='true' %sdesugar='full' >\n" % (args.name, "library='true' " …
105 f.write(" <manifest file='%s' %s/>\n" % (args.manifest, test_attr))
107 f.write(" <merged-manifest file='%s' %s/>\n" % (args.merged_manifest, test_attr))
110 f.write(" <src file='%s' %s/>\n" % (src, test_attr))
113 f.write(" <src file='%s' generated='true' %s/>\n" % (src, test_attr))
116 f.write(" <resource file='%s' %s/>\n" % (res, test_attr))
118 f.write(" <classes jar='%s' />\n" % classes)
120 f.write(" <classpath jar='%s' />\n" % classpath)
122 f.write(" <lint-checks jar='%s' />\n" % extra)
123 f.write(" </module>\n")
125 f.write(" <cache dir='%s'/>\n" % args.cache_dir)
126 f.write("</project>\n")
129 def write_config_xml(f, args): argument
130 f.write("<?xml version='1.0' encoding='utf-8'?>\n")
131 f.write("<lint>\n")
133 f.write(" <issue id='%s' severity='%s' />\n" % (check[1], check[0]))
134 f.write("</lint>\n")
142 with open(args.project_out, 'w') as f:
143 write_project_xml(f, args)
146 with open(args.config_out, 'w') as f:
147 write_config_xml(f, args)