From 23741cac4dd1985b7added367fb0f28614dc2a07 Mon Sep 17 00:00:00 2001 From: Sorin Basca Date: Tue, 6 Jun 2023 09:38:57 +0100 Subject: [PATCH] Add exports needed for Doclava Bug: 270335653 Test: m doclava docs dist Change-Id: Id46c877ddfd64b36f1ee96a7678076af69d91cdb --- java/droiddoc.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/java/droiddoc.go b/java/droiddoc.go index dbe021d00..d4ead12c8 100644 --- a/java/droiddoc.go +++ b/java/droiddoc.go @@ -608,6 +608,11 @@ func (d *Droiddoc) doclavaDocsFlags(ctx android.ModuleContext, cmd *android.Rule FlagWithArg("-Xmaxerrs ", "10"). FlagWithArg("-Xmaxwarns ", "10"). Flag("-J--add-exports=jdk.javadoc/jdk.javadoc.internal.doclets.formats.html=ALL-UNNAMED"). + Flag("-J--add-exports=jdk.javadoc/jdk.javadoc.internal.tool=ALL-UNNAMED"). + Flag("-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED"). + Flag("-J--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED"). + Flag("-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED"). + Flag("-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED"). Flag("-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED"). FlagWithArg("-hdf page.build ", ctx.Config().BuildId()+"-$(cat "+buildNumberFile.String()+")").OrderOnly(buildNumberFile). FlagWithArg("-hdf page.now ", `"$(date -d @$(cat `+ctx.Config().Getenv("BUILD_DATETIME_FILE")+`) "+%d %b %Y %k:%M")" `)