camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r1173986 - /camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileEndpoint.java
Date Thu, 22 Sep 2011 08:18:16 GMT
Author: cschneider
Date: Thu Sep 22 08:18:15 2011
New Revision: 1173986

URL: http://svn.apache.org/viewvc?rev=1173986&view=rev
Log:
CAMEL-4425 Fix test failure in file component because of invalid URI

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileEndpoint.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileEndpoint.java?rev=1173986&r1=1173985&r2=1173986&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileEndpoint.java
(original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileEndpoint.java
Thu Sep 22 08:18:15 2011
@@ -127,7 +127,7 @@ public class FileEndpoint extends Generi
 
     @Override
     protected String createEndpointUri() {
-        return "file://" + getFile().getAbsolutePath();
+        return getFile().toURI().toString();
     }
 
     @Override



Mime
View raw message