Merge "Soong: remove output file before running signapk" am: 413c3bea63

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1511908

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iffe70681136af6d8ad427823b1583aa44246a87c
This commit is contained in:
Treehugger Robot 2020-12-09 17:24:52 +00:00 committed by Automerger Merge Worker
commit 69ac81038a

View file

@ -32,7 +32,7 @@ import (
var ( var (
Signapk, SignapkRE = remoteexec.StaticRules(pctx, "signapk", Signapk, SignapkRE = remoteexec.StaticRules(pctx, "signapk",
blueprint.RuleParams{ blueprint.RuleParams{
Command: `$reTemplate${config.JavaCmd} ${config.JavaVmFlags} -Djava.library.path=$$(dirname ${config.SignapkJniLibrary}) ` + Command: `rm -f $out && $reTemplate${config.JavaCmd} ${config.JavaVmFlags} -Djava.library.path=$$(dirname ${config.SignapkJniLibrary}) ` +
`-jar ${config.SignapkCmd} $flags $certificates $in $out`, `-jar ${config.SignapkCmd} $flags $certificates $in $out`,
CommandDeps: []string{"${config.SignapkCmd}", "${config.SignapkJniLibrary}"}, CommandDeps: []string{"${config.SignapkCmd}", "${config.SignapkJniLibrary}"},
}, },