Open okayawright opened 3 years ago
https://github.com/j-easy/easy-batch/blob/647ce811fc1ada476ceef4f48a2f8523367a4892/easy-batch-core/src/main/java/org/jeasy/batch/core/reader/AbstractMultiFileRecordReader.java#L77
I believe the line could be changed to :
currentFile = iterator.hasNext() ? iterator.next() : null;
in order to allow a job with no input files not to fail, just to report as COMPLETE even if it didn't process anything
https://github.com/j-easy/easy-batch/blob/647ce811fc1ada476ceef4f48a2f8523367a4892/easy-batch-core/src/main/java/org/jeasy/batch/core/reader/AbstractMultiFileRecordReader.java#L77
I believe the line could be changed to :
in order to allow a job with no input files not to fail, just to report as COMPLETE even if it didn't process anything