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

Add support for loading kafka properties from classpath #637

Merged

Conversation

alvinkwekel
Copy link
Contributor

We have the requirement to include the kafka properties from the classpath

@alvinkwekel alvinkwekel force-pushed the classpath-property-file-support branch from a55e370 to 1b38827 Compare April 19, 2024 14:00
@Bert-R
Copy link
Collaborator

Bert-R commented Jun 8, 2024

Closing and reopening to retrigger the checks

@Bert-R Bert-R closed this Jun 8, 2024
@Bert-R Bert-R reopened this Jun 8, 2024
Copy link
Collaborator

@Bert-R Bert-R left a 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() :
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Optional<AbstractResource> readablePropertyFile = StringUtils.isBlank(propertiesFile) ? Optional.empty() :
Optional<AbstractResource> propertiesResource = StringUtils.isBlank(propertiesFile) ? Optional.empty() :

Copy link
Contributor Author

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.

Copy link
Collaborator

@Bert-R Bert-R left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@Bert-R Bert-R merged commit 4594fa0 into obsidiandynamics:master Jun 11, 2024
1 check passed
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.

2 participants