svn commit: r595758 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileProducer.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r595758 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileProducer.java

jstrachan-2
Author: jstrachan
Date: Fri Nov 16 09:55:00 2007
New Revision: 595758

URL: http://svn.apache.org/viewvc?rev=595758&view=rev
Log:
applied patch for https://issues.apache.org/activemq/browse/CAMEL-203 with thanks!

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

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileProducer.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileProducer.java?rev=595758&r1=595757&r2=595758&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileProducer.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/FileProducer.java Fri Nov 16 09:55:00 2007
@@ -171,7 +171,11 @@
                 answer = new File(endpointFile, message.getMessageId());
             }
         } else {
-            answer = endpointFile;
+            if (name == null) {
+                answer = endpointFile;
+            } else {
+                answer = new File(endpointFile, name);
+            }
         }
         return answer;
     }