<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:p="http://www.springframework.org/schema/p"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">

	<description>
		Deletes files in given directory - TaskletStep is used as this
		is the kind of task that is not natural to split into read and
		write. In this case the step is wrapped in a standalone job,
		however typically it would be a setup step in a multi-step job.
	</description>

	<bean id="taskletJob" parent="simpleJob">
		<property name="steps">
			<bean id="deleteFilesInDir" parent="taskletStep">
				<property name="tasklet">
					<bean
						class="org.springframework.batch.sample.tasklet.FileDeletingTasklet">
						<property name="directoryResource"
							ref="directory" />
					</bean>
				</property>
			</bean>
		</property>
	</bean>

	<bean id="directory"
		class="org.springframework.core.io.FileSystemResource">
		<constructor-arg value="target/test-outputs/test-dir" />
	</bean>

</beans>