In Spring Batch 1.x you can use the StepExecutionResourceProxy [1] to extract the date from the jobParameters. For this to work you have to register the proxy as a listener on the step.
Code:
<property name="resource" ref="fileLocator" />
<bean id="fileLocator" class="org.springframework.batch.core.resource.StepExecutionResourceProxy">
<property name="filePattern" value="file://temp/myfile%schedule.date%.txt"/>
</bean>
In Spring Batch 2.0 you will be able to use the late-binding feature to say something like:
Code:
<property name="resource" value="file://temp/myfile#{jobParameters[schedule.date]}.txt" />
[1] http://static.springframework.org/sp...urceProxy.html