02601118f6edf725e64e2471def69e0114ae3845,src/python/pants/backend/android/tasks/aapt_gen.py,AaptGen,genlang,#AaptGen#Any#Any#,86

Before Change


      if lang != "java":
        raise TaskError("Unrecognized android gen lang: {0!r}".format(lang))
      process = subprocess.Popen(self.render_args(target, self.workdir))
      result = process.wait()
      if result != 0:
        raise TaskError("Android aapt tool exited non-zero ({code})".format(code=result))

  def createtarget(self, lang, gentarget, dependees):

After Change


      with self.context.new_workunit(name="aapt_gen", labels=[WorkUnit.MULTITOOL]) as workunit:
        returncode = subprocess.call(args, stdout=workunit.output("stdout"),
                                     stderr=workunit.output("stderr"))
        if returncode:
          raise TaskError("The AaptGen process exited non-zero: {0}".format(returncode))

  def createtarget(self, lang, gentarget, dependees):
    spec_path = os.path.join(os.path.relpath(self.workdir, get_buildroot()))
    address = SyntheticAddress(spec_path=spec_path, target_name=gentarget.id)
    aapt_gen_file = self._calculate_genfile(gentarget.package)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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: 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: deepfakes/faceswap
Commit Name: 2b4ae91b02d0b3b42e2a634c4f432df6d20d3b7c
Time: 2018-11-04
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/gui/wrapper.py
Class Name: FaceswapControl
Method Name: terminate