diff options
| author | 2022-12-01 21:43:06 +0000 | |
|---|---|---|
| committer | 2022-12-28 00:27:11 +0000 | |
| commit | 09ff3deef5ef2f70299eab805c28576616e4e8ec (patch) | |
| tree | 91231b9501ff5f740abafdabef99f43c1f6d7fca /java/java_test.go | |
| parent | ea04aad416a23a527c79f999fbecb58512bf97a6 (diff) | |
Add an api_files property in java_api_library
java_api_contribution is useful to java_api_library when the api files
are not colocated.
If they are colocated (e.g. in Multi-tree assembled api_surfaces
directory), it is useful to refer to them directly without nedding to
create a java_api_contribution module.
Test: In build/soong, go test ./java
Change-Id: I5b4e557068a1e5c71a80c76452030e72ec83a696
Merged-In: I5b4e557068a1e5c71a80c76452030e72ec83a696
Diffstat (limited to 'java/java_test.go')
| -rw-r--r-- | java/java_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/java_test.go b/java/java_test.go index d437a1723..2378a6cbe 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -1691,6 +1691,7 @@ func TestJavaApiLibraryAndProviderLink(t *testing.T) { name: "bar2", api_surface: "system", api_contributions: ["foo1", "foo2"], + api_files: ["api1/current.txt", "api2/current.txt"] } `, map[string][]byte{ @@ -1708,7 +1709,7 @@ func TestJavaApiLibraryAndProviderLink(t *testing.T) { }, { moduleName: "bar2", - sourceTextFileDirs: []string{"a/foo1.txt", "b/foo2.txt"}, + sourceTextFileDirs: []string{"a/foo1.txt", "b/foo2.txt", "api1/current.txt", "api2/current.txt"}, }, } for _, c := range testcases { |