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

Replace deprecated OptionBuilder with Option.builder() #2488

Open
wants to merge 11 commits into
base: integration
Choose a base branch
from

Conversation

SethSmucker
Copy link
Collaborator

The following classes have been updated to use Option.builder() instead of the deprecated class OptionBuilder:

  1. datawave.ingest.util.AccumuloCliOptions
  2. datawave.ingest.util.GenerateMultipleNumShardCacheFile
  3. datawave.ingest.util.GenerateSplitFile
  4. datawave.metrics.config.MetricOptions

part of #2443

@SethSmucker SethSmucker marked this pull request as ready for review August 1, 2024 15:49
@avgAGB
Copy link
Collaborator

avgAGB commented Aug 5, 2024

Does it make sense to remove the OptionBuilderTest unit tests too?

ivakegg
ivakegg previously approved these changes Sep 4, 2024
// options.addOption(Option.builder("u").argName("Username").hasArg().required().desc("Accumulo username").build());
options.addOption(Option.builder(CONFIG_DIRECTORY_LOCATION_OVERRIDE).argName("Config Directory Path").hasArg().required().desc("Config directory path")
.build());
options.addOption(Option.builder(CONFIG_SUFFIX_OVERRIDE).argName("Config Suffix").hasArg().required().desc("Config file suffix").build());
Copy link
Collaborator

Choose a reason for hiding this comment

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

This one is not required. Caught this as it broke in integration testing.

Copy link
Collaborator

@ivakegg ivakegg left a comment

Choose a reason for hiding this comment

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

double check what is required and what is not in terms of options.

@ivakegg ivakegg added the MXTC label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants