02601118f6edf725e64e2471def69e0114ae3845,src/python/pants/backend/android/tasks/aapt_builder.py,AaptBuilder,execute,#AaptBuilder#,64

Before Change


          target.walk(gather_resources)

          process = subprocess.Popen(self.render_args(target, gen_out, input_dirs))
          result = process.wait()
          if result != 0:
            raise TaskError("Android aapt tool exited non-zero ({code})".format(code=result))
    for target in targets:
      self.context.products.get("apk").add(target, self.workdir).append(target.app_name + "-unsigned.apk")

After Change


        with self.context.new_workunit(name="apk-bundle", labels=[WorkUnit.MULTITOOL]) as workunit:
          returncode = subprocess.call(args, stdout=workunit.output("stdout"),
                                       stderr=workunit.output("stderr"))
          if returncode:
            raise TaskError("Android aapt tool exited non-zero: {0}".format(returncode))
    for target in targets:
      self.context.products.get("apk").add(target, self.workdir).append("{0}.unsigned.apk"
                                                                        .format(target.app_name))
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_builder.py
Class Name: AaptBuilder
Method Name: execute


Project Name: automl/auto-sklearn
Commit Name: 7098738c9f3c41120cffcce7a76fa7e8e86df4ec
Time: 2015-10-02
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/automl.py
Class Name: AutoML
Method Name: _fit


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