diff options
author | Jihoon Kang <jihoonkang@google.com> | 2024-01-23 00:39:27 +0000 |
---|---|---|
committer | Jihoon Kang <jihoonkang@google.com> | 2024-01-23 00:39:27 +0000 |
commit | 34b707113283aa69855119e29cdfa125ae4105e5 (patch) | |
tree | cb213a55d7e4f0113de68f000e532a5ddeefc80a | |
parent | 76ac4470cbfa1378576c473357c0292dbd19467b (diff) | |
download | xsdc-34b707113283aa69855119e29cdfa125ae4105e5.tar.gz |
Modify xsdConfig Build Actions to reflect provider change
This change makes necessary changes to reflect the changes in
ApiFilePath(), which now takes a parameter StubsType and also returns an
error.
Test: m nothing --no-skip-soong-tests
Bug: 319162970
Change-Id: I1abf31d97aa324ab000b41fcfd646da6d9768d3c
-rw-r--r-- | build/xsdc.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build/xsdc.go b/build/xsdc.go index 818e938..7b66aa1 100644 --- a/build/xsdc.go +++ b/build/xsdc.go @@ -226,7 +226,12 @@ func (module *xsdConfig) GenerateAndroidBuildActions(ctx android.ModuleContext) ctx.VisitDirectDeps(func(to android.Module) { if doc, ok := to.(java.ApiFilePath); ok { - module.docsPath = doc.ApiFilePath() + docsPath, err := doc.ApiFilePath(java.Everything) + if err != nil { + ctx.ModuleErrorf(err.Error()) + } else { + module.docsPath = docsPath + } } }) |