Hi,
I use m5 version of spring batch .
I run my batch jobs with the parameters : /monjob.xml monjob batch.scheduleDate=200803111000.

In my job.xml file, I would like to use the batch.scheduleDate value in the name of an output file.
For that, I have replaced ${batch.scheduleDate} in the name of the ouputFile (in m3 version) by %batch.scheduleDate% but it doesn't work.
Here is my job.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schem...-beans-2.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">

<import resource="classpath:simple-container-definition.xml" />

<bean id="ExtractionClientsJob" parent="simpleJob">
<property name="steps">
<list>
<bean id="Extraction" parent="simpleStep">
<property name="streams" ref="clientFileWriter"/>
<property name="commitInterval" value="2" />
<property name="allowStartIfComplete" value="false" />
<property name="itemReader" ref="DbItemReader" />
<property name="itemWriter" ref="clientFileWriter"/>
</bean>
</list>
</property>
</bean>

<!-- INFRASTRUCTURE SETUP -->
<bean id="DbItemReader" class="com.natixis.sphinx.batch.reader.DbItemReade r">
<property name="dataSource" ref="dataSource" />
<property name="sql">
<value> select p.ceseqo, p.cocivi,p.nompat,p.nommar,p.prenom,p.preno2,p.dah eme,p.cosecu,p.cositf,a.librue,a.copost,a.libvil,a .copays,a.coposn,a.copayn,a.libvin,c.cochar,c.dahe m1,c.numrib from sphmclient c, sphmadresse a, sphmpersonne p where c.cochar=7 and c.copers=p.ceseqo and p.ceseqo=a.copers order by p.ceseqo</value>
</property>
<property name="mapper">
<bean class="com.natixis.sphinx.batch.modele.mapping.Cli entRowMapper" />
</property>
</bean>

<bean id="clientFileWriter" class="org.springframework.batch.io.file.FlatFileI temWriter">
<property name="resource" ref="resourceSortie1" />
<property name="lineAggregator" >
<bean class="org.springframework.batch.io.file.transform .DelimitedLineAggregator">
<property name="delimiter" value=";"/>
</bean>
</property>
<property name="fieldSetUnmapper" >
<bean class="com.natixis.sphinx.batch.modele.mapping.Cli entFieldSetCreator" />
</property>
<property name="shouldDeleteIfExists" value="true"/>
</bean>

<bean id="mapContext" class="com.natixis.sphinx.batch.domain.Context">
<property name="map">
<map>
<entry key="resourceSortie1" value-ref="resourceSortie1"/>
<entry key="dataSource" value-ref="dataSource"/>
</map>
</property>
</bean>


<bean id="resourceSortie1" class="java.lang.String">
<constructor-arg value="file:data/output/%batch.scheduleDate%.clients.txt"/>
</bean>

</beans>
I have read that the class org.springframework.batch.execution.resource.StepE xecutionProxyResource replace %% by the value of parameters but I don't know what I have to do to be able to use it.

Could you give me a sample which shows how to use parameters of batch in job.xml?

Thanks in advance (sorry for my bad english).