Thank you.
I already try that syntax :
Code:
<property name="resource" value="#{jobParameters[input.file.name]}" />
But I must be missing something, the el expression is not interpreted and I end up with something like :
Code:
at org.springframework.batch.core.launch.support.CommandLineJobRunner.start(CommandLineJobRunner.java:207)
at org.springframework.batch.core.launch.support.CommandLineJobRunner.main(CommandLineJobRunner.java:254)
Caused by: java.lang.IllegalStateException: Input resource must exist (reader is in 'strict' mode): class path resource [#{jobParameters[input.file.name]}]
at org.springframework.batch.item.file.FlatFileItemReader.doOpen(FlatFileItemReader.java:245)
at org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader.open(AbstractItemCountingItemStreamItemReader.java:108)
... 18 more
Maybe there's an additional configuration required to use this feature ?