-
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
Add default config sources to codegen config #27431
Labels
kind/enhancement
New feature or request
Milestone
Comments
#27436 takes care of it |
gsmet
added a commit
that referenced
this issue
Aug 23, 2022
Add system properties source to CodeGenerator config sources
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Aug 23, 2022
Resolves: quarkusio#27431 (cherry picked from commit 1b87bab)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Aug 24, 2022
Resolves: quarkusio#27431 (cherry picked from commit 1b87bab)
fercomunello
pushed a commit
to fercomunello/quarkus
that referenced
this issue
Aug 31, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Seems that the
Config
instance passed to theCodeGenProvider
implementation does not have the default config sources configured. Therefore, if you need to resolve system properties, you're forced to look them up manually viaSystem.getProperty
.It'd be nicer if you could resolve them automatically via the
Config
instance. It'd make overriding of config values via the command line a bit simpler to handle.Implementation ideas
Add
setAddDefaultSources(true)
to the config builder inCodeGenerator.trigger()
.The text was updated successfully, but these errors were encountered: