OSDN Git Service

releasetools: Use java_path in sign_target_files_apks.py.
authorTao Bao <tbao@google.com>
Tue, 8 Nov 2016 20:08:53 +0000 (12:08 -0800)
committerTao Bao <tbao@google.com>
Thu, 10 Nov 2016 01:05:28 +0000 (17:05 -0800)
commitcd4f7c96c008cd35a54522894fe90590c646ff11
tree59bfbc42226bf069b10cfbe60e7b6806090b121d
parentc7814837a0a9bf83f5005393949161c9ca74a7e9
releasetools: Use java_path in sign_target_files_apks.py.

Prior to this CL, it was calling the hard-coded "java" although it was
accepting a "--java_path" option.

Also switch OPTIONS.java_args from string to list. Otherwise it won't
work when providing multiple args.

Bug: 32737832
Test: Specify "--java_path=" and "--java_args" when invoking
      sign_target_files_apks.py with "-v". Check the commands being
      called.
Change-Id: Id7ef98e778646d532027434de7fba9b7a104dbd0

(cherry picked from commit e95540e06000f3b0b33bf12374135111ecf45bd5)
tools/releasetools/common.py
tools/releasetools/sign_target_files_apks.py