dirk-olmes/mule-transport-cifs — Issue #1: moveToDir ,moveToPattern does not  passed to Reciever
Author: hypergori
Created: 2012-02-08 02:58:18+00:00
State: open

Hi, thanx for this useful tranport in win-unix mix env like ours.

One thing I noticed is

moveToPattern and moveToDir is used in SmbMessageReceiver.java but not passed . via arguments.
I have changed locally and have my own version of it and use this connector in our project.

patch is below . I quickly amend it so that i maybe not approriate way to change about it.

Index: src/main/java/org/mule/transport/cifs/SmbMessageReceiver.java
===================================================================
--- src/main/java/org/mule/transport/cifs/SmbMessageReceiver.java	(revision 4700)
+++ src/main/java/org/mule/transport/cifs/SmbMessageReceiver.java	(working copy)
@@ -62,14 +62,15 @@
super(connector, flowConstruct, endpoint);

this.setFrequency(frequency);
- this.moveToDir = moveToDir;
- this.moveToPattern = moveToPattern;
+// this.moveToDir = moveToDir;
+// this.moveToPattern = moveToPattern;
this.fileAge = fileAge;
this.connector = (SmbConnector)connector;
-
+
this.moveToDir = this.connector.getMoveToDirectory();
this.moveToPattern = this.connector.getMoveToPattern();

+

if (endpoint.getFilter() instanceof FilenameFilter)
{