Skip to content
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

Merged
merged 1 commit into from
Oct 14, 2020

Conversation

ia3andy
Copy link
Contributor

@ia3andy ia3andy commented Oct 13, 2020

  • Make sure that custom path and className are ignored when resteasy is selected (to avoid conflicts)
  • Add tests

Fixes #12604

- Make sure that custom `path` and `className` are ignored when resteasy is selected (to avoid conflicts)
- Add tests

Fixes quarkusio#12604
@gsmet gsmet force-pushed the fix-spring-web-codestart branch from 91c3d16 to bce82a5 Compare October 13, 2020 17:24
@gsmet
Copy link
Member

gsmet commented Oct 13, 2020

Rebased to get a CI fix.

Copy link
Member

@aureamunoz aureamunoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@aureamunoz
Copy link
Member

Oups, what about the check failed?

@ia3andy
Copy link
Contributor Author

ia3andy commented Oct 14, 2020

Oups, what about the check failed?

@aureamunoz we can ignore it's a network problem:

2020-10-13T20:26:05.1071437Z [ERROR] DOCKER> Error occurred during container startup, shutting down...
2020-10-13T20:26:05.1074606Z [ERROR] DOCKER> I/O Error [Unable to pull 'redis:5.0.8-alpine' : Get https://registry-1.docker.io/v2/library/redis/manifests/sha256:cda5d02e4ea900a8d52e834bc3158e83b8a87a5b44ae081885aecf9b156dcff1: EOF ]

@ia3andy
Copy link
Contributor Author

ia3andy commented Oct 14, 2020

I will re-run the CI anyway, I don't like to merge when the CI failed..

@ia3andy ia3andy added this to the 1.10 - master milestone Oct 14, 2020
@ia3andy
Copy link
Contributor Author

ia3andy commented Oct 14, 2020

@aloubyansky could you review that one please :)

if (containsRESTEasy(extensions)) {
values.remove(CLASS_NAME);
values.remove(PACKAGE_NAME);
values.remove(RESOURCE_PATH);
Copy link
Member

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?

Copy link
Contributor Author

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 :)

Copy link
Contributor Author

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 :)

Copy link
Member

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?

Copy link
Contributor Author

@ia3andy ia3andy Oct 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aloubyansky aloubyansky merged commit 68f0b20 into quarkusio:master Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a system to allow custom path and class for spring-web codestart
4 participants