Skip to content

Geowave 464#469

Merged
rfecher merged 2 commits intomasterfrom
GEOWAVE-464
Jul 18, 2015
Merged

Geowave 464#469
rfecher merged 2 commits intomasterfrom
GEOWAVE-464

Conversation

@rfecher
Copy link
Copy Markdown
Contributor

@rfecher rfecher commented Jul 17, 2015

Per @ewilson-radblue:

Addresses #464 (I suppose creating that issue wasn't necessary).

The problem was when using fields specified in an IngestFormatOptionProvider from a plugin. In AbstractIngestCommandLineDriver, it tries to parse the command on line 108 but does not call IngestFormatOptionProvider's applyOptions() method until it calls getPluginProviders() on line 141. It would try to reparse the command on line 162 with the additional options, but the failed parse on line 108 throws an exception and never gets to that line. Also, if the 'f' flag is not specified, the custom options are never added at all.

The fix is to set the parameter 'stopAtNonOption' to 'true' for CommandLineParser.parse() so that it doesn't throw an exception on an unrecognized parameter. This allows it to pull out the 'f' flag value and apply the flags for the appropriate plugins. Also, moved the application of the plugins' custom parameters to apply even in cases where the 'f' flag is not specified.

rfecher added a commit that referenced this pull request Jul 18, 2015
@rfecher rfecher merged commit 5296660 into master Jul 18, 2015
@rfecher rfecher deleted the GEOWAVE-464 branch July 18, 2015 21:32
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