From 4679c9bdbed2f4e9a18ca02b7956aae9855f0592 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Fri, 23 Jun 2017 11:51:37 -0400 Subject: [PATCH] INT-4302: Add `fileExistsMode()` to Java DSL JIRA: https://jira.spring.io/browse/INT-4302 Add `RemoteFileOutboundGatewaySpec#fileExistsMode()` --- .../file/dsl/RemoteFileOutboundGatewaySpec.java | 15 ++++++++++++++- .../integration/ftp/dsl/FtpTests.java | 2 ++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/dsl/RemoteFileOutboundGatewaySpec.java b/spring-integration-file/src/main/java/org/springframework/integration/file/dsl/RemoteFileOutboundGatewaySpec.java index e80512e78e..77dd829394 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/dsl/RemoteFileOutboundGatewaySpec.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/dsl/RemoteFileOutboundGatewaySpec.java @@ -32,6 +32,7 @@ import org.springframework.integration.file.filters.FileListFilter; import org.springframework.integration.file.filters.RegexPatternFileListFilter; import org.springframework.integration.file.filters.SimplePatternFileListFilter; import org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway; +import org.springframework.integration.file.support.FileExistsMode; import org.springframework.messaging.Message; /** @@ -338,6 +339,19 @@ public abstract class RemoteFileOutboundGatewaySpec getComponentsToRegister() { Map componentsToRegister = new LinkedHashMap<>(); @@ -351,7 +365,6 @@ public abstract class RemoteFileOutboundGatewaySpec