-
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
Allow custom path and class for spring-web codestart #12684
Allow custom path and class for spring-web codestart #12684
Conversation
- Make sure that custom `path` and `className` are ignored when resteasy is selected (to avoid conflicts) - Add tests Fixes quarkusio#12604
91c3d16
to
bce82a5
Compare
Rebased to get a CI fix. |
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!
Oups, what about the check failed? |
@aureamunoz we can ignore it's a network problem:
|
I will re-run the CI anyway, I don't like to merge when the CI failed.. |
@aloubyansky could you review that one please :) |
if (containsRESTEasy(extensions)) { | ||
values.remove(CLASS_NAME); | ||
values.remove(PACKAGE_NAME); | ||
values.remove(RESOURCE_PATH); |
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 assume that's necessary but it's not clear why. In case of Spring these props aren't relevant? Are they still relevant for RESTEasy?
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.
@aloubyansky there is another if (containsSpringWeb(extensions)) {
just before, so if we have resteasy
and spring
we don't use those because it would means that the spring resources and the resteasy one will have the same path and class name, we don't want that :)
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.
if you have just resteasy
or spring
then there is no problem :)
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.
Are these CLASS_NAME, etc used in case of Spring web at all? How is the class name passed for spring?
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.
path
andclassName
are ignored when resteasy is selected (to avoid conflicts)Fixes #12604