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

Updating JCommander to 1.78 #615

Closed
wants to merge 1 commit into from
Closed

Updating JCommander to 1.78 #615

wants to merge 1 commit into from

Conversation

comunacho
Copy link
Contributor

Fixes #612

There's a known issue with jCommander.setAcceptUnknownOptions(true), described here. Disabling that option and updating tests that were using unknown parameters helped to get a green build.

@@ -345,7 +345,6 @@ public void importXcodeXliff() throws Exception {

getL10nJCommander().run("push", "-r", repository.getName(),
"-s", getInputResourcesTestDir("source").getAbsolutePath(),
"-t", getInputResourcesTestDir("translations").getAbsolutePath(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Push command doesn't have any -t parameter

@@ -206,7 +206,8 @@ public void createJCommanderForRun() {
logger.debug("Create JCommander instance");
jCommander = new JCommander();

jCommander.setAcceptUnknownOptions(true);
// TODO: Cant enable this until https://github.com/cbeust/jcommander/issues/377 is fixed
// jCommander.setAcceptUnknownOptions(true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that was used to pass extra configuration to spring ... not sure if it is actually used today

Copy link
Collaborator

Choose a reason for hiding this comment

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

@jeeyi Is this used on your side?

@@ -119,7 +119,7 @@ public Long answer(InvocationOnMock invocation) throws Throwable {

localizeDropFiles(dropRepository.findById(dropId).orElse(null));

l10nJCommander.run(new String[]{"drop-import", "-r", repository.getName(), "--number-drop-fetched", "1000"});
Copy link
Collaborator

Choose a reason for hiding this comment

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

😨

@aurambaj aurambaj force-pushed the spring2x branch 6 times, most recently from b0d9400 to 87ad622 Compare July 29, 2020 01:24
@comunacho comunacho changed the base branch from spring2x to master August 5, 2020 16:36
@comunacho comunacho closed this Aug 5, 2020
@comunacho comunacho deleted the jcommander-update branch August 5, 2020 16:45
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.

JCommander trims argument values from the command line
2 participants