Merge "Add sourcepath to inputs of remoteable metalava action."

This commit is contained in:
Treehugger Robot 2020-05-12 04:15:16 +00:00 committed by Gerrit Code Review
commit e72da7f63c
1 changed files with 1 additions and 0 deletions

View File

@ -1388,6 +1388,7 @@ func metalavaCmd(ctx android.ModuleContext, rule *android.RuleBuilder, javaVersi
pool = v
}
inputs := []string{android.PathForOutput(ctx, "host", ctx.Config().PrebuiltOS(), "framework", "metalava.jar").String()}
inputs = append(inputs, sourcepaths.Strings()...)
if v := ctx.Config().Getenv("RBE_METALAVA_INPUTS"); v != "" {
inputs = append(inputs, strings.Split(v, ",")...)
}