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
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user