Merge "Allow access to the class jar for java_import using {.jar} tag"

This commit is contained in:
Paul Duffin
2020-10-07 17:16:43 +00:00
committed by Gerrit Code Review
2 changed files with 36 additions and 1 deletions

View File

@@ -2711,6 +2711,17 @@ func (j *Import) GenerateAndroidBuildActions(ctx android.ModuleContext) {
}
}
func (j *Import) OutputFiles(tag string) (android.Paths, error) {
switch tag {
case ".jar":
return android.Paths{j.combinedClasspathFile}, nil
default:
return nil, fmt.Errorf("unsupported module reference tag %q", tag)
}
}
var _ android.OutputFileProducer = (*Import)(nil)
var _ Dependency = (*Import)(nil)
func (j *Import) HeaderJars() android.Paths {