f3f6f012f7f43c2f4632e12b103362dd399b4560,src/python/pants/backend/codegen/tasks/protobuf_gen.py,ProtobufGen,execute_codegen,#ProtobufGen#Any#Any#,111

Before Change


                                               + protoc_environ["PATH"].split(os.pathsep))

    self.context.log.debug("Executing: {0}".format("\\\n  ".join(args)))
    process = subprocess.Popen(args, env=protoc_environ)
    result = process.wait()
    if result != 0:
      raise TaskError("{0} ... exited non-zero ({1})".format(self.protobuf_binary, result))

  def _calculate_sources(self, target):

After Change



    // Note: The test_source_ordering integration test scrapes this output, so modify it with care.
    self.context.log.debug("Executing: {0}".format("\\\n  ".join(args)))
    with self.context.new_workunit(name="protoc",
                                   labels=[WorkUnitLabel.TOOL],
                                   cmd=" ".join(args)) as workunit:
      result = subprocess.call(args,
                               env=protoc_environ,
                               stdout=workunit.output("stdout"),
                               stderr=workunit.output("stderr"))
      if result != 0:
        raise TaskError("{} ... exited non-zero ({})".format(self.protobuf_binary, result))

  def _calculate_sources(self, target):
    gentargets = OrderedSet()

    def add_to_gentargets(tgt):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: pantsbuild/pants
Commit Name: f3f6f012f7f43c2f4632e12b103362dd399b4560
Time: 2016-11-28
Author: benjyw@gmail.com
File Name: src/python/pants/backend/codegen/tasks/protobuf_gen.py
Class Name: ProtobufGen
Method Name: execute_codegen


Project Name: pantsbuild/pants
Commit Name: 02601118f6edf725e64e2471def69e0114ae3845
Time: 2015-02-02
Author: mateorod9@gmail.com
File Name: src/python/pants/backend/android/tasks/aapt_builder.py
Class Name: AaptBuilder
Method Name: execute


Project Name: pantsbuild/pants
Commit Name: 02601118f6edf725e64e2471def69e0114ae3845
Time: 2015-02-02
Author: mateorod9@gmail.com
File Name: src/python/pants/backend/android/tasks/aapt_gen.py
Class Name: AaptGen
Method Name: genlang


Project Name: pantsbuild/pants
Commit Name: f3f6f012f7f43c2f4632e12b103362dd399b4560
Time: 2016-11-28
Author: benjyw@gmail.com
File Name: src/python/pants/backend/codegen/tasks/protobuf_gen.py
Class Name: ProtobufGen
Method Name: execute_codegen