From cf02ec87476e7dc044e85cc04b4182df3f53cbd2 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 23 Dec 2020 17:13:16 -0800 Subject: Use soong_zip -srcjar for proto and aidl srcjars IntelliJ's indexer is unhappy with the full paths in the proto and aidl srcjars. Use the -srcjar argument to soong_zip, which causes it to extract the correct filename for .java files based on the package statement in the file. Bug: 176209347 Test: manual Change-Id: I63d9d4f6ba670e3b851835d719519d675ae54c7f --- java/proto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/proto.go') diff --git a/java/proto.go b/java/proto.go index cc9abbeee..dc5519f41 100644 --- a/java/proto.go +++ b/java/proto.go @@ -49,7 +49,7 @@ func genProto(ctx android.ModuleContext, protoFiles android.Paths, flags android // into a srcjar. rule.Command(). BuiltTool("soong_zip"). - Flag("-jar"). + Flag("-srcjar"). Flag("-write_if_changed"). FlagWithOutput("-o ", srcJarFile). FlagWithArg("-C ", outDir.String()). -- cgit v1.2.3-59-g8ed1b