summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jared Duke <jdduke@google.com> 2023-06-16 23:12:33 +0000
committer Jared Duke <jdduke@google.com> 2023-06-16 23:12:33 +0000
commit91f32e7ae5a6ba2c632e7ac05910c5b385785e31 (patch)
treef5dbb976575cceddede7583ac48354f0bc59f705
parent9241da96626b6e224fbf255f1d03ea0bf4e8958b (diff)
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
-rw-r--r--java/resourceshrinker.go3
1 files changed, 2 insertions, 1 deletions
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")