From d02a43668a185e0fe503d32ebd1ffd612274cf93 Mon Sep 17 00:00:00 2001 From: Jihoon Kang Date: Tue, 12 Sep 2023 23:54:43 +0000 Subject: [PATCH] Utilize `-quiet` flag in java_api_library java_api_library finds and zips class files based on pattern matching, leading to multiple missing files warnings being printed to console during from-text stub build. This change passes the `-quiet` flag to soong_zip to prevent such warnings from being printed. Test: m --build-from-text-stub and inspect console output Bug: 300166930 Change-Id: I23d49b5e3a29d2127f5e917169620e18a98bc06b --- java/java.go | 1 + 1 file changed, 1 insertion(+) diff --git a/java/java.go b/java/java.go index 99bb1b3ee..b92531268 100644 --- a/java/java.go +++ b/java/java.go @@ -1798,6 +1798,7 @@ func (al *ApiLibrary) extractApiSrcs(ctx android.ModuleContext, rule *android.Ru Flag("-jar"). Flag("-write_if_changed"). Flag("-ignore_missing_files"). + Flag("-quiet"). FlagWithArg("-C ", unzippedSrcJarDir.String()). FlagWithInput("-l ", classFilesList). FlagWithOutput("-o ", al.stubsJarWithoutStaticLibs)