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):
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)
After Change
if lang != "java":
raise TaskError("Unrecognized android gen lang: {0}".format(lang))
args = self.render_args(target, self.workdir)
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 15
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: 05d7240153788a0d35c514ac9942a8a87ed6e1ef
Time: 2017-11-08
Author: cheister@gmail.com
File Name: contrib/jax_ws/src/python/pants/contrib/jax_ws/tasks/jax_ws_gen.py
Class Name: JaxWsGen
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