5e6868b272957c21483d0a0a39d88f1b29d80d94,src/python/pants/tasks/protobuf_gen.py,ProtobufGen,genlang,#ProtobufGen#Any#Any#,82

Before Change


      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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 5e6868b272957c21483d0a0a39d88f1b29d80d94
Time: 2014-04-23
Author: zundel@squareup.com
File Name: src/python/pants/tasks/protobuf_gen.py
Class Name: ProtobufGen
Method Name: genlang


Project Name: pantsbuild/pants
Commit Name: 1ae352138a76085f32967e4587495654c32c06f5
Time: 2016-01-04
Author: wangpeiyu@gmail.com
File Name: src/python/pants/backend/jvm/tasks/classpath_util.py
Class Name: ClasspathUtil
Method Name: create_canonical_classpath


Project Name: pantsbuild/pants
Commit Name: 136206c62ff375644ac5f0b76f619d049ecd34e0
Time: 2016-01-08
Author: wangpeiyu@gmail.com
File Name: src/python/pants/backend/jvm/tasks/bundle_create.py
Class Name: BundleCreate
Method Name: consolidate_classpath