Add .jar tag to java modules

Allow java modules to be referenced as ":module{.jar}" to get
the classes .jar.

Bug: 122333007
Test: m checkbuild
Change-Id: I2d07f774ae8ed5a39206059c4102727c6802d26e
This commit is contained in:
Colin Cross 2019-05-29 14:40:58 -07:00
parent 41955e8895
commit 375ca3c680

View file

@ -355,6 +355,8 @@ func (j *Module) OutputFiles(tag string) (android.Paths, error) {
switch tag {
case "":
return append(android.Paths{j.outputFile}, j.extraOutputFiles...), nil
case ".jar":
return android.Paths{j.implementationAndResourcesJar}, nil
default:
return nil, fmt.Errorf("unsupported module reference tag %q", tag)
}