When using FileBatchService to run ModuleBatchProcessor on a module with File inputs, we currently just ask for a list of Files without restrictions:
|
@Parameter(label = "Input files") |
|
private File[] inputFileList; |
We should however respect the style annotation of the given moduleInfo and take the same (files, directories as well as extensions:*) to restrict our input file list. Let's add some logic in the initializer of ModuleBatchProcessor.
When using
FileBatchServiceto runModuleBatchProcessoron a module withFileinputs, we currently just ask for a list ofFiles without restrictions:batch-processor/src/main/java/org/scijava/batch/ModuleBatchProcessor.java
Lines 46 to 47 in bc3eda3
We should however respect the
styleannotation of the givenmoduleInfoand take the same (files,directoriesas well asextensions:*) to restrict our input file list. Let's add some logic in the initializer ofModuleBatchProcessor.