summaryrefslogtreecommitdiff
path: root/java/classpath_fragment.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-07-18 22:11:07 -0700
committer Cherrypicker Worker <android-build-cherrypicker-worker@google.com> 2024-02-19 13:01:23 +0000
commit9bc4228f88178dbbef1f012afaeaa1318a0f9f77 (patch)
treefde02eebc39cf53e66870ca3d42b3fb7de7695ca /java/classpath_fragment.go
parent66eca9b5800713dd834c1c0a9d2a44f383911af5 (diff)
Strip META-INF/services from implementation jars when using as header jars
If a header jar couldn't be built (for example when an API generating annoation processor is in use) the implementation jar is reused as the header jar. If the implementation jar contains an annotation processor listed in META-INF/services/javax.annotation.processing.Processor then later javac executions with the implementation jar in the classpath could attempt to run the annotation processors unexpectedly. Remove the META-INF/services directory when using an implementation jar as a header jar. Bug: 290933559 Test: builds (cherry picked from commit f06d8dc8e3816cef2d3c0ba072ad1fc24bc44de0) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d3b1b77184b1c002136039e70074899a35b1ed77) Merged-In: I40d48644bc5a09a9564dc2c4b38f627edd00fcf8 Change-Id: I40d48644bc5a09a9564dc2c4b38f627edd00fcf8
Diffstat (limited to 'java/classpath_fragment.go')
0 files changed, 0 insertions, 0 deletions