summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Liz Kammer <eakammer@google.com> 2023-09-07 14:54:41 -0400
committer Liz Kammer <eakammer@google.com> 2023-09-08 09:44:00 -0400
commit33dddf5a7e4437e61ab5aa122a23a7df8cf2e470 (patch)
tree6ab4f56449426d6d48b68f35a8cd49b46f0b1758 /java/java.go
parent65942c8467c243c6b8f53e680da3126fedbc3e3b (diff)
Do not convert resource dirs without resources
Previously we would convert to java_resources when there were no resources and get an error. Test: b build //external/libphonenumber/... --config=android Change-Id: I86f30b993a3ffdb20000f6a4c5261e2c4c74263c
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go
index 967f8c297..99bb1b3ee 100644
--- a/java/java.go
+++ b/java/java.go
@@ -2826,7 +2826,7 @@ func (m *Library) convertJavaResourcesAttributes(ctx android.TopDownMutatorConte
if resourceStripPrefix == nil && i == 0 {
resourceStripPrefix = resAttr.Resource_strip_prefix
resources = resAttr.Resources.Value
- } else {
+ } else if !resAttr.Resources.IsEmpty() {
ctx.CreateBazelTargetModule(
bazel.BazelTargetModuleProperties{
Rule_class: "java_resources",