From aa43b9410719a5c71acaf51d4ea3afaab833ad2b Mon Sep 17 00:00:00 2001 From: Nan Zhang Date: Tue, 21 Aug 2018 16:24:38 -0700 Subject: [PATCH] [java9] Add "--dex-api" option to Metalava. This allow Metalava to generate public-dex file when user specify dex_api_filename. This blocks how we try java9 for droiddoc since "hiddenapi-lists-docs" targets depends on libcore sources. Test: m -j hiddenapi-lists-docs Bug: b/78245848 Change-Id: Ic847c1123b14afb599dbf2a588885fd36e56b2cc Merged-In: Ic847c1123b14afb599dbf2a588885fd36e56b2cc --- java/droiddoc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/java/droiddoc.go b/java/droiddoc.go index 52db7057e..070d5c162 100644 --- a/java/droiddoc.go +++ b/java/droiddoc.go @@ -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) }