[java9] Add "--dex-api" option to Metalava.

am: aa43b94107

Change-Id: I456f4809edd6d79a87e080f4ed30599fc0f8bb09
This commit is contained in:
Nan Zhang 2018-08-28 17:05:08 -07:00 committed by android-build-merger
commit 57715aa032

View file

@ -904,6 +904,7 @@ func (d *Droiddoc) collectStubsFlags(ctx android.ModuleContext, implicitOutputs
if String(d.properties.Dex_api_filename) != "" {
d.dexApiFile = android.PathForModuleOut(ctx, String(d.properties.Dex_api_filename))
doclavaFlags += " -dexApi " + d.dexApiFile.String()
MetalavaFlags += " --dex-api " + d.dexApiFile.String()
*implicitOutputs = append(*implicitOutputs, d.dexApiFile)
}