INT-1614 changed 'local-working-directory' attribute to 'local-directory' on FTP side (now consistent with SFTP and matches the name of the actual property)
This commit is contained in:
@@ -68,7 +68,7 @@ public class FtpInboundChannelAdapterParser extends AbstractPollingInboundChanne
|
||||
synchronizerBuilder.addPropertyReference("filter", filter);
|
||||
}
|
||||
messageSourceBuilder.addPropertyValue("synchronizer", synchronizerBuilder.getBeanDefinition());
|
||||
IntegrationNamespaceUtils.setValueIfAttributeDefined(messageSourceBuilder, element, "local-working-directory", "localDirectory");
|
||||
IntegrationNamespaceUtils.setValueIfAttributeDefined(messageSourceBuilder, element, "local-directory");
|
||||
return messageSourceBuilder.getBeanDefinition();
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="remote-directory" type="xsd:string" use="required"/>
|
||||
<xsd:attribute name="local-working-directory" type="xsd:string" use="required"/>
|
||||
<xsd:attribute name="local-directory" type="xsd:string" use="required"/>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
session-factory="ftpSessionFactory"
|
||||
channel="ftpIn"
|
||||
filename-pattern="foo"
|
||||
local-working-directory="file:target/foo"
|
||||
local-directory="target/foo"
|
||||
remote-directory="foo/bar"
|
||||
auto-create-directories="true"
|
||||
auto-delete-remote-files-on-sync="false">
|
||||
@@ -36,7 +36,7 @@
|
||||
session-factory="ftpSessionFactory"
|
||||
channel="ftpIn"
|
||||
filter="filter"
|
||||
local-working-directory="file:target"
|
||||
local-directory="target"
|
||||
remote-directory="foo/bar"
|
||||
auto-create-directories="true"
|
||||
auto-delete-remote-files-on-sync="false">
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
channel="ftpIn"
|
||||
session-factory="ftpSessionFactory"
|
||||
filter="filter"
|
||||
local-working-directory="file:target/bar"
|
||||
local-directory="file:target/bar"
|
||||
remote-directory="foo/bar"
|
||||
auto-create-directories="false"
|
||||
auto-delete-remote-files-on-sync="false">
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
auto-create-directories="true"
|
||||
auto-delete-remote-files-on-sync="true"
|
||||
filename-pattern=".?txt"
|
||||
local-working-directory="."
|
||||
local-directory="."
|
||||
remote-directory="foo/bar">
|
||||
<int:poller fixed-rate="1000"/>
|
||||
</int-ftp:inbound-channel-adapter>
|
||||
@@ -29,7 +29,7 @@
|
||||
auto-create-directories="true"
|
||||
auto-delete-remote-files-on-sync="true"
|
||||
filter="entryListFilter"
|
||||
local-working-directory="."
|
||||
local-directory="."
|
||||
remote-directory="foo/bar">
|
||||
<int:poller fixed-rate="1000"/>
|
||||
</int-ftp:inbound-channel-adapter>
|
||||
@@ -41,4 +41,5 @@
|
||||
<bean id="entryListFilter" class="org.mockito.Mockito" factory-method="mock">
|
||||
<constructor-arg value="org.springframework.integration.file.filters.FileListFilter"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
charset="UTF-8"
|
||||
auto-create-directories="true"
|
||||
auto-delete-remote-files-on-sync="true"
|
||||
local-working-directory="."
|
||||
local-directory="."
|
||||
remote-directory="foo/bar"
|
||||
filter="entryListFilter">
|
||||
<int:poller fixed-rate="1000"/>
|
||||
@@ -36,7 +36,7 @@
|
||||
auto-create-directories="true"
|
||||
auto-delete-remote-files-on-sync="true"
|
||||
filename-pattern=".?txt"
|
||||
local-working-directory="."
|
||||
local-directory="."
|
||||
remote-directory="foo/bar">
|
||||
<int:poller fixed-rate="1000"/>
|
||||
</int-ftp:inbound-channel-adapter>
|
||||
@@ -46,4 +46,5 @@
|
||||
<bean id="entryListFilter" class="org.mockito.Mockito" factory-method="mock">
|
||||
<constructor-arg value="org.springframework.integration.file.filters.FileListFilter"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
session-factory="ftpSessionFactory"
|
||||
channel="ftpIn"
|
||||
auto-create-directories="true"
|
||||
local-working-directory="file:target/foo"
|
||||
local-directory="file:target/foo"
|
||||
remote-directory="foo/bar"
|
||||
auto-delete-remote-files-on-sync="false">
|
||||
<int:poller fixed-rate="1000"/>
|
||||
|
||||
Reference in New Issue
Block a user