summaryrefslogtreecommitdiff
path: root/java/hiddenapi_singleton.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2020-12-03 11:15:58 +0000
committer Paul Duffin <paulduffin@google.com> 2020-12-04 16:21:57 +0000
commit7f48eeff590ca1675bac3286ac83e1e2a516a0a2 (patch)
tree6a611817fc105fd4390d79c6fb437268d08add45 /java/hiddenapi_singleton.go
parent06e7b6d906d37915d909beb76bb59f358cfbf8a4 (diff)
Improve error messages for missing dependencies
Adds some additional information into the paths that are created when modules are missing in Soong but SOONG_ALLOW_MISSING_DEPENDENCIES=true. Test: try and build platform against art prebuilts Bug: 171061220 Change-Id: Ifbcc0af5bdbd15409758a3b6f216cf9b3b5dba31
Diffstat (limited to 'java/hiddenapi_singleton.go')
-rw-r--r--java/hiddenapi_singleton.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/java/hiddenapi_singleton.go b/java/hiddenapi_singleton.go
index ce8410ed4..419dc3424 100644
--- a/java/hiddenapi_singleton.go
+++ b/java/hiddenapi_singleton.go
@@ -177,12 +177,13 @@ func stubFlagsRule(ctx android.SingletonContext) {
for moduleList, pathList := range moduleListToPathList {
for i := range pathList {
if pathList[i] == nil {
- pathList[i] = android.PathForOutput(ctx, "missing")
+ moduleName := (*moduleList)[i]
+ pathList[i] = android.PathForOutput(ctx, "missing/module", moduleName)
if ctx.Config().AllowMissingDependencies() {
- missingDeps = append(missingDeps, (*moduleList)[i])
+ missingDeps = append(missingDeps, moduleName)
} else {
ctx.Errorf("failed to find dex jar path for module %q",
- (*moduleList)[i])
+ moduleName)
}
}
}