Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/integration"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:file="http://www.springframework.org/schema/integration/file"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/integration/file
http://www.springframework.org/schema/integration/file/spring-integration-file.xsd">
<channel id="input"/>
<router input-channel="input" expression="${binary} ? 'files' : 'appendNewline'"/>
<transformer input-channel="appendNewline" expression="payload + @newline" output-channel="files"/>
<beans:bean id="newline" class="java.lang.String">
<beans:constructor-arg value="#{systemProperties['line.separator']}"/>
</beans:bean>
<channel id="files"/>
<beans:beans profile="use-string">
<file:outbound-channel-adapter id="files"
mode="${mode}"
charset="${charset}"
directory="${dir}"
filename-generator-expression="'${name}' + '${extensionWithDot}'"/>
</beans:beans>
<beans:beans profile="use-expression">
<file:outbound-channel-adapter id="files"
mode="${mode}"
charset="${charset}"
directory-expression="${dirExpression}"
filename-generator-expression="${nameExpression}"/>
</beans:beans>
</beans:beans>