Hi, I want to define a FTP consumer such that it consumes files with names such as, Program_20121008.zip, Delta_20121008.zip etc. i.e. Some filename patter followed by _ followed by toda's date. Now if I use the fileName property of the File consumer I can define the name as Program_${date:now:yyyyMMdd} which is great but what I really want is a mix of java regex and Camel's File language combined to have something like, (program|delta)_${date:now:yyyyMMdd}.zip If I use this in include then I believe I cannot use the file language and hence the above expression doesnt work. Include expects a Java style regex and unfortunately I don't think there is a way in Java to say today's date as regex. If I use filename then Camel thinks of the above a File Language expression and doesn't evaluate (program|delta) part.
Can you guys suggest me how this could be done? I am trying to avoid using filters as I am expecting users for now to manually enter a filename regex/Camel file lang expression. Thanks in advance, -v- -- View this message in context: http://camel.465427.n5.nabble.com/File-name-as-Program-Delta-YYYYDDMM-zip-for-File-and-FTP-consumer-tp5720759.html Sent from the Camel - Users mailing list archive at Nabble.com.