-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix resource registration for native compilation #40184
Fix resource registration for native compilation #40184
Conversation
NativeImageResourceBuildItem and ServiceProviderBuildItem contain a path of the resource we should include and not a pattern or a glob. As a result, `Pattern.quote` is the right method to use in order to produce a pattern that would match the path. The patch also remove the wrong addition of the paths "as is" to the includes json array. Fix up of b7f49dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that we should also clarify the javadoc of NativeImageResourceBuildItem
so that it's clear what exactly does resource
mean there and how it's handled later on in the NativeImageResourceConfigStep
...
Done in 24507ee |
This comment has been minimized.
This comment has been minimized.
98552ea
to
24507ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense for main
and 3.10
.
I will send an email to quarkus-dev to check it won't break people before backporting further.
.../src/main/java/io/quarkus/deployment/builditem/nativeimage/NativeImageResourceBuildItem.java
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
24507ee
to
757537b
Compare
Status for workflow
|
NativeImageResourceBuildItem and ServiceProviderBuildItem contain a path
of the resource we should include and not a pattern or a glob. As a
result,
Pattern.quote
is the right method to use in order to produce apattern that would match the path.
The patch also remove the wrong addition of the paths "as is" to the
includes json array.
Fix up of b7f49dd (#31185)