From 91f32e7ae5a6ba2c632e7ac05910c5b385785e31 Mon Sep 17 00:00:00 2001 From: Jared Duke Date: Fri, 16 Jun 2023 23:12:33 +0000 Subject: [PATCH] Suppress resourceshrinker stdout in soong The resourceshrinker command prints an info log for successful runs, which we don't really need to surface in build output. Suppress stdout for such invocations; errors will surface through stderr. Bug: 202959019 Test: m + compare log output Change-Id: I08ed465bb7e3a0fa8d5e967d858f6739b5ef7fad --- java/resourceshrinker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/resourceshrinker.go b/java/resourceshrinker.go index 6d5960157..bf1b04d94 100644 --- a/java/resourceshrinker.go +++ b/java/resourceshrinker.go @@ -22,7 +22,8 @@ import ( var shrinkResources = pctx.AndroidStaticRule("shrinkResources", blueprint.RuleParams{ - Command: `${config.ResourceShrinkerCmd} --output $out --input $in --raw_resources $raw_resources`, + // Note that we suppress stdout to avoid successful log confirmations. + Command: `${config.ResourceShrinkerCmd} --output $out --input $in --raw_resources $raw_resources >/dev/null`, CommandDeps: []string{"${config.ResourceShrinkerCmd}"}, }, "raw_resources")