From c4be28cbc7677acf73130583ab5e1e7fbc32c7cc Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Tue, 16 Dec 2008 23:30:26 +0000 Subject: [PATCH] INT-518 --- .../file/config/FileInboundChannelAdapterParser.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.springframework.integration.file/src/main/java/org/springframework/integration/file/config/FileInboundChannelAdapterParser.java b/org.springframework.integration.file/src/main/java/org/springframework/integration/file/config/FileInboundChannelAdapterParser.java index 25a604da17..913cf8b194 100644 --- a/org.springframework.integration.file/src/main/java/org/springframework/integration/file/config/FileInboundChannelAdapterParser.java +++ b/org.springframework.integration.file/src/main/java/org/springframework/integration/file/config/FileInboundChannelAdapterParser.java @@ -45,6 +45,9 @@ public class FileInboundChannelAdapterParser extends AbstractPollingInboundChann PACKAGE_NAME + ".FileReadingMessageSource"); String directory = element.getAttribute("directory"); if (StringUtils.hasText(directory)) { + if (directory.indexOf(':') == -1) { + directory = "file:" + directory; + } builder.addPropertyValue("inputDirectory", directory); } String filter = element.getAttribute("filter");