-
Notifications
You must be signed in to change notification settings - Fork 152
Add CLI argument to change files easily #1336
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
Conversation
SteffenHeu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, but some comments
| } | ||
|
|
||
| if (overrideDataFiles != null) { | ||
| if (!newQueue.setImportFiles(overrideDataFiles)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the method never returns false but throws an exception instead, so the code below is never reached.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
returns false now. Logging was improved and jdocs as well
| * | ||
| * @param allFiles replaces import files | ||
| */ | ||
| public boolean setImportFiles(final File[] allFiles) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does not return false but throws an exception. Refactor to do one of the two.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
returns false now. Logging was improved and jdocs as well
|
looks good, thanks |
Added arguments i: input to change the input files in batch files easily. It just replaces all the files in the AllSpectralDataImportModule.
Either provide a txt file with paths or use glob patterns