diff options
author | Paul Duffin <paulduffin@google.com> | 2020-10-07 17:16:43 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-10-07 17:16:43 +0000 |
commit | a87ea4587da10cc9da000d4ea4b11b1aa7806e7a (patch) | |
tree | e5c3bf42d3a0fc6bf0dd12598c847000dde83bde /java/java_test.go | |
parent | a5e9be94764928f7190e011b81503f255a432e62 (diff) | |
parent | aa55f745051c31e48c0002699e17d0ef88eb2100 (diff) |
Merge "Allow access to the class jar for java_import using {.jar} tag"
Diffstat (limited to 'java/java_test.go')
-rw-r--r-- | java/java_test.go | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/java/java_test.go b/java/java_test.go index f16639aa8..a43e2a8c9 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -1412,7 +1412,31 @@ func TestJavaLibrary(t *testing.T) { name: "core", sdk_version: "none", system_modules: "none", - }`), + } + + filegroup { + name: "core-jar", + srcs: [":core{.jar}"], + } +`), + }) + ctx := testContext() + run(t, ctx, config) +} + +func TestJavaImport(t *testing.T) { + config := testConfig(nil, "", map[string][]byte{ + "libcore/Android.bp": []byte(` + java_import { + name: "core", + sdk_version: "none", + } + + filegroup { + name: "core-jar", + srcs: [":core{.jar}"], + } +`), }) ctx := testContext() run(t, ctx, config) |