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))