safe_mkdir(self.java_out)
gen = "--java_out=%s" % self.java_out
elif lang == "python":
safe_mkdir(self.py_out)
gen = "--python_out=%s" % self.py_out
else:
raise TaskError("Unrecognized protobuf gen lang: %s" % lang)
After Change
if self.plugins:
for plugin in self.plugins:
// TODO(Eric Ayers) Is it a good assumption that the generated source output dir is acceptable for all plugins?
args.append("--%s_protobuf_out=%s" % (plugin, output_dir))
for base in bases:
args.append("--proto_path=%s" % base)