[MP Config 2.0] Support for config profiles#73
[MP Config 2.0] Support for config profiles#73angelozerr merged 1 commit intoredhat-developer:masterfrom
Conversation
See eclipse-lsp4mp/lsp4mp#78 Signed-off-by: azerr <azerr@redhat.com>
| "microprofile-config.properties" | ||
| "filenamePatterns": [ | ||
| "microprofile-config.properties", | ||
| "microprofile-config-?*.properties" |
There was a problem hiding this comment.
Just curious. Does the new pattern also cover the old one ? Not that I mind repeating if the purpose is to make it very clear.
There was a problem hiding this comment.
If you remove microprofile-config.properties from the patterns, then it will no longer recognize microprofile-config.properties as a "Microprofile properties" file
There was a problem hiding this comment.
microprofile-config.properties should work, no?
There was a problem hiding this comment.
Yes, it works if you have "microprofile-config.properties" in "filenamePatterns", but I think Roland was wondering if just "microprofile-config-?*.properties" alone will support "microprofile-config.properties", which it does not.
There was a problem hiding this comment.
Ok I see. So ? matches a single character, and not (0 or 1) of the previous character.
There was a problem hiding this comment.
For package.json, I believe it matches exactly one character, but yes, it usually means the character it follows is optional. If the latter were the case, then microprofile-config-.properties should be recognized as a MicroProfile properties file, but it isn't.
yes it's intentional, microprofile-config-.properties is not a valid profile. |
|
|
|
It means that profile is just - . I dont know if there is some validation for profile name. I suggest that you try to start an applicationwith the profile - and see if it retrievers the proper property on the microprofile-config--.properties The pattern that I write is just to be sure that there is a profile |
|
Thanks for your reviews @AlexXuChen @rgrunber |

[MP Config 2.0] Support for config profiles
See eclipse-lsp4mp/lsp4mp#78
Signed-off-by: azerr azerr@redhat.com