<?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:int-file="http://www.springframework.org/schema/integration/file"
	xmlns:task="http://www.springframework.org/schema/task"
	xmlns:int="http://www.springframework.org/schema/integration"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:util="http://www.springframework.org/schema/util"
	xsi:schemaLocation="http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/integration/file https://www.springframework.org/schema/integration/file/spring-integration-file.xsd
		http://www.springframework.org/schema/task https://www.springframework.org/schema/task/spring-task.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/util https://www.springframework.org/schema/util/spring-util.xsd
		http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd">

	<int:channel id="tailErrorChannel"/>

	<int-file:tail-inbound-channel-adapter id="default"
		channel="input"
		task-executor="exec"
		file="/tmp/baz"
		auto-startup="true"
		phase="123"
		error-channel="tailErrorChannel"/>

	<int-file:tail-inbound-channel-adapter id="native"
		channel="input"
		native-options="-F -n 6"
		task-executor="exec"
		task-scheduler="sched"
		enable-status-reader="false"
		file-delay="456"
		file="/tmp/foo"
		auto-startup="true"
		delay="${empty}"
		end="${empty}"
		reopen="${empty}"
		phase="123" />

	<int-file:tail-inbound-channel-adapter id="apacheDefault"
		channel="input"
		native-options="${empty}"
		task-executor="exec"
		file="/tmp/bar"
		delay="${foo}"
		file-delay="10000"
		idle-event-interval="10000"
		auto-startup="false"
		phase="123" />

	<context:property-placeholder properties-ref="props"/>

	<util:properties id="props">
		<prop key="foo">2000</prop>
		<prop key="empty"></prop>
	</util:properties>

	<int-file:tail-inbound-channel-adapter id="apacheEndReopen"
		channel="input"
		task-executor="exec"
		file="/tmp/qux"
		delay="2000"
		file-delay="10000"
		end="false"
		reopen="true"
		auto-startup="false"
		phase="123" />

	<int:channel id="input" />

	<task:scheduler id="sched" />

	<bean class="org.springframework.integration.file.config.FileTailInboundChannelAdapterParserTests$Config" />

</beans>
