diff options
author | Sorin Basca <sorinbasca@google.com> | 2022-07-25 19:46:05 +0100 |
---|---|---|
committer | Sorin Basca <sorinbasca@google.com> | 2022-09-01 10:14:29 +0100 |
commit | a9432ee7bd5a17c465285dc443ba833dd326678d (patch) | |
tree | cda9bfcef1e3222e27b1fa8a5c35c35447a8d892 | |
parent | 3e78e30b61c9f2c0338e41ac15c1ac69d370d197 (diff) | |
download | guice-a9432ee7bd5a17c465285dc443ba833dd326678d.tar.gz |
Filter out OpenJDK warning message
Bug: 240131965
Test: m guice
Change-Id: Ia0d86dcc4c66aab1fb0130443ad13b9236d1a1b3
-rw-r--r-- | Android.bp | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -98,6 +98,10 @@ java_binary_host { libs: ["junit"], } +// Filter out warnings produced by OpenJDK to stdout, otherwise these warnings +// make it into generated Java files (b/240131965). +// TODO: Remove the filter is OpenJDK stops writing the warning to stdout (see +// https://bugs.openjdk.org/browse/JDK-8270087). genrule { name: "guice_munged_srcs", srcs: [":guice_srcs"], @@ -108,7 +112,8 @@ genrule { ], cmd: "for src in $(in); do " + " mkdir -p $$(dirname $(genDir)/$${src}) && " + - " $(location guice_munge) -DNO_AOP $${src} > $(genDir)/$${src} || exit 1; " + + " $(location guice_munge) -DNO_AOP $${src} | " + + " sed '/Duplicate cpuset controllers detected/d' > $(genDir)/$${src} || exit 1; " + " done && " + " $(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)", } |