-
Notifications
You must be signed in to change notification settings - Fork 3k
Introduce @RegisterResourceBundle
and @RegisterResources
#48805
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
Conversation
This comment has been minimized.
This comment has been minimized.
48106e7
to
8d86846
Compare
This comment has been minimized.
This comment has been minimized.
8d86846
to
fedb4ff
Compare
This comment has been minimized.
This comment has been minimized.
068369d
to
2a6abe4
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🙈 The PR is closed and the preview is expired. |
2a6abe4
to
713b26f
Compare
This comment has been minimized.
This comment has been minimized.
713b26f
to
c6ad739
Compare
Hey @Eng-Fouad , given you contribute quite often, you should have a look at some aliases I created here: https://github.com/quarkusio/quarkus/blob/main/CONTRIBUTING.md#using-aliases I usually use |
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@RegisterResourceBundle
and @RegisterResources
@zakkak Could you please review this PR. Thanks. |
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.
Hi @Eng-Fouad, thank you for your contribution.
Please see my comments.
core/runtime/src/main/java/io/quarkus/runtime/annotations/RegisterResources.java
Show resolved
Hide resolved
core/deployment/src/main/java/io/quarkus/deployment/steps/RegisterResourceBundleBuildStep.java
Outdated
Show resolved
Hide resolved
core/runtime/src/main/java/io/quarkus/runtime/annotations/RegisterResources.java
Outdated
Show resolved
Hide resolved
core/runtime/src/main/java/io/quarkus/runtime/annotations/RegisterResources.java
Outdated
Show resolved
Hide resolved
core/runtime/src/main/java/io/quarkus/runtime/annotations/RegisterResources.java
Outdated
Show resolved
Hide resolved
c6ad739
to
f8ca720
Compare
f8ca720
to
2b4342a
Compare
Updated according to your comments. Thanks. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Well. Github just never show the newline at end of the file on preview: ![]() ![]() @zakkak Could you please review this PR again? Thanks :) |
Any chance we could introduce these into one of our native tests? |
Currently there are no tests for |
I would much prefer to have this PR add something in one of our integration tests - I assume it won't be too hard. For |
Can you please give me an example for native tests in integration-tests that I can copy from? Thanks. |
What I would do is look at |
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.
LGTM, thanks @Eng-Fouad.
Waiting for the integration tests requested by @geoand as well before merging.
c5e64f8
to
4d87238
Compare
4d87238
to
860f3e9
Compare
Status for workflow
|
Status for workflow
|
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.
Approving as @zakkak was happy with it and an IT has been added.
See #48805 (review) .
These annotations are used to register resources in native image.
@RegisterResourceBundle
and@RegisterResources
to register resources in native image #48804