-
Notifications
You must be signed in to change notification settings - Fork 855
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 support for loading kafka properties from classpath #637
Add support for loading kafka properties from classpath #637
Conversation
a55e370
to
1b38827
Compare
Closing and reopening to retrigger the checks |
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.
@alvinkwekel Thanks for this enhancement!
Code looks good, except for the name of the variable holding the properties resource. If you rename that, we can merge this PR.
final var propertiesFile = new File(this.propertiesFile); | ||
if (propertiesFile.isFile()) { | ||
LOG.info("Loading properties from {}", this.propertiesFile); | ||
Optional<AbstractResource> readablePropertyFile = StringUtils.isBlank(propertiesFile) ? Optional.empty() : |
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.
Optional<AbstractResource> readablePropertyFile = StringUtils.isBlank(propertiesFile) ? Optional.empty() : | |
Optional<AbstractResource> propertiesResource = StringUtils.isBlank(propertiesFile) ? Optional.empty() : |
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.
@Bert-R Thanks for the feedback. I've changed the variable name.
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.
Looks good. Thanks!
We have the requirement to include the kafka properties from the classpath