summaryrefslogtreecommitdiff
path: root/test-base
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2021-05-10 12:40:05 +0100
committerAnton Hansson <hansson@google.com>2021-05-10 12:41:01 +0100
commit2e25fdc90f3da2fbf7df9378fe60b51b4f184b7c (patch)
tree8295c9dcc9e88a85c0d8177c46f1dc8e0b5a6f94 /test-base
parent6c4de79bcc3db9b6020d132f0957d8ce2028b4c7 (diff)
Use filegroups for test-{base,mock,runner} srcs
This allows soong to infer the package of the given srcs, which in turns make it able to filter the inputs to metalava to exclude unwanted packages. This is part of a larger topic of changes intended to remove undesired classes from the public documentation. Bug: 187386774 Test: m Change-Id: I8196c306b743ce6ca8a6452d212f3d7c0b5b2b82
Diffstat (limited to 'test-base')
-rw-r--r--test-base/Android.bp10
1 files changed, 8 insertions, 2 deletions
diff --git a/test-base/Android.bp b/test-base/Android.bp
index 9bd639b63ae0..b58aa11597c2 100644
--- a/test-base/Android.bp
+++ b/test-base/Android.bp
@@ -32,7 +32,7 @@ package {
java_sdk_library {
name: "android.test.base",
- srcs: ["src/**/*.java"],
+ srcs: [":android-test-base-sources"],
errorprone: {
javacflags: ["-Xep:DepAnn:ERROR"],
@@ -66,7 +66,7 @@ java_library_static {
name: "android.test.base_static",
installable: false,
- srcs: ["src/**/*.java"],
+ srcs: [":android-test-base-sources"],
errorprone: {
javacflags: ["-Xep:DepAnn:ERROR"],
@@ -114,6 +114,12 @@ java_library_static {
],
}
+filegroup {
+ name: "android-test-base-sources",
+ srcs: ["src/**/*.java"],
+ path: "src",
+}
+
// Make the current.txt available for use by the cts/tests/signature tests.
// ========================================================================
filegroup {