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

[WFCORE-6345] Add missing JavaDoc and ensure the --yaml argument is a… #5495

Merged
merged 1 commit into from May 10, 2023

Conversation

jamezp
Copy link
Member

@jamezp jamezp commented May 5, 2023

…dded at most once. Also added additional method for adding YAML configuration files.

https://issues.redhat.com/browse/WFCORE-6345

…dded at most once. Also added additional method for adding YAML configuration files.

https://issues.redhat.com/browse/WFCORE-6345
Signed-off-by: James R. Perkins <jperkins@redhat.com>
@github-actions github-actions bot added the deps-ok Dependencies have been checked, and there are no significant changes label May 5, 2023
Copy link
Collaborator

@yersan yersan left a comment

Choose a reason for hiding this comment

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

Added a minor comment, but form my side, looks good

return this;
}
StringJoiner joiner = new StringJoiner(File.pathSeparator);
for (Path yamlFile : yamlFiles) {
joiner.add(yamlFile.toAbsolutePath().toString());
}
addServerArg("--yaml", joiner.toString());
setSingleServerArg("--yaml", joiner.toString());
Copy link
Collaborator

Choose a reason for hiding this comment

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

As a suggestion: addServerArg and setSingleServerArg do exactly the same; I'm not sure about the intention behind but probably we can remove one, they are package protected so, so the removal could be simple.

Copy link
Member Author

Choose a reason for hiding this comment

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

The addServerArg() should add arguments to the command line, e.g. addServerArg("-yaml", "config-a.yml") and addServerArg("-yaml", "config-b.yml") should result in --yaml confiig-a.yml --yaml config-b.yml. Where as serSingleServerArg() should first remove an argument, then add it.

@yersan yersan requested a review from ehsavoie May 9, 2023 08:26
@jamezp jamezp merged commit e2911de into wildfly:main May 10, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deps-ok Dependencies have been checked, and there are no significant changes
Projects
None yet
3 participants