diff options
author | 2024-07-22 21:03:50 +0100 | |
---|---|---|
committer | 2024-07-23 10:38:01 +0100 | |
commit | 278193669eee7a92187f8f70a738bcda1b9e298a (patch) | |
tree | 492ae004b6371fb962b6c1e23a59b1fcdb5e417d /java/testing.go | |
parent | 39d3883500fe2fa964a64df2e3225a7811744b5e (diff) |
Pass config files to metalava
Adds a filegroup "metalava-config-files" whose contents are passed to
Metalava using the `--config-file` option.
Bug: 354699349
Test: m checkapi
Change-Id: I1e246517c2ef678e41214c975aecee97f9faca67
Diffstat (limited to 'java/testing.go')
-rw-r--r-- | java/testing.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/testing.go b/java/testing.go index 5ae326d93..7a42e4cce 100644 --- a/java/testing.go +++ b/java/testing.go @@ -52,6 +52,8 @@ var PrepareForTestWithJavaBuildComponents = android.GroupFixturePreparers( android.MockFS{ // Needed for linter used by java_library. "build/soong/java/lint_defaults.txt": nil, + // Needed for java components that invoke Metalava. + "build/soong/java/metalava/Android.bp": []byte(`filegroup {name: "metalava-config-files"}`), // Needed for apps that do not provide their own. "build/make/target/product/security": nil, // Required to generate Java used-by API coverage |