From b5de4b64dcb8ebc05207c929e45d7dbb400a3fce Mon Sep 17 00:00:00 2001 From: Iwein Fuld Date: Mon, 28 Dec 2009 18:58:56 +0000 Subject: [PATCH] INT-950: turns out all supporting classes already had this property, so only changes in the namespace and the parser were needed. --- ...ngMessageHandlerBeanDefinitionBuilder.java | 1 + .../config/spring-integration-file-2.0.xsd | 1 + ...boundChannelAdapterParserTests-context.xml | 5 + ...FileOutboundChannelAdapterParserTests.java | 137 ++++++++++-------- 4 files changed, 82 insertions(+), 62 deletions(-) diff --git a/org.springframework.integration.file/src/main/java/org/springframework/integration/file/config/FileWritingMessageHandlerBeanDefinitionBuilder.java b/org.springframework.integration.file/src/main/java/org/springframework/integration/file/config/FileWritingMessageHandlerBeanDefinitionBuilder.java index 91d837fc6b..fd6d6752da 100644 --- a/org.springframework.integration.file/src/main/java/org/springframework/integration/file/config/FileWritingMessageHandlerBeanDefinitionBuilder.java +++ b/org.springframework.integration.file/src/main/java/org/springframework/integration/file/config/FileWritingMessageHandlerBeanDefinitionBuilder.java @@ -50,6 +50,7 @@ abstract class FileWritingMessageHandlerBeanDefinitionBuilder { } IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "auto-create-directory"); IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "delete-source-files"); + IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "charset"); String fileNameGenerator = element.getAttribute("filename-generator"); if (StringUtils.hasText(fileNameGenerator)) { builder.addPropertyReference("fileNameGenerator", fileNameGenerator); diff --git a/org.springframework.integration.file/src/main/resources/org/springframework/integration/file/config/spring-integration-file-2.0.xsd b/org.springframework.integration.file/src/main/resources/org/springframework/integration/file/config/spring-integration-file-2.0.xsd index ca74e70772..b018962c8f 100644 --- a/org.springframework.integration.file/src/main/resources/org/springframework/integration/file/config/spring-integration-file-2.0.xsd +++ b/org.springframework.integration.file/src/main/resources/org/springframework/integration/file/config/spring-integration-file-2.0.xsd @@ -200,6 +200,7 @@ + diff --git a/org.springframework.integration.file/src/test/java/org/springframework/integration/file/config/FileOutboundChannelAdapterParserTests-context.xml b/org.springframework.integration.file/src/test/java/org/springframework/integration/file/config/FileOutboundChannelAdapterParserTests-context.xml index 5b1ef4ce13..7a2cd7a17d 100644 --- a/org.springframework.integration.file/src/test/java/org/springframework/integration/file/config/FileOutboundChannelAdapterParserTests-context.xml +++ b/org.springframework.integration.file/src/test/java/org/springframework/integration/file/config/FileOutboundChannelAdapterParserTests-context.xml @@ -29,6 +29,11 @@ delete-source-files="true" directory="${java.io.tmpdir}"/> + +