[ 
https://issues.apache.org/activemq/browse/CAMEL-621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45055#action_45055
 ] 

Claus Ibsen commented on CAMEL-621:
-----------------------------------

Idea for patterns:
- the date/time stuff from java.text (YYY-mm-DD)
- ID the message ID (UUID)
- ORIGINAL the consumed filename so you can do Backup-${ORIGINAL}
- ORIGINALNOEXT the consumed filename without extension so you can do 
${ORIGINALNOEXT}.bak

And should be using ${ } placeholders.

> File component - file rename pattern to support patterns such as date time 
> etc.
> -------------------------------------------------------------------------------
>
>                 Key: CAMEL-621
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-621
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.3.0, 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> A very common use case is to copy received messages into files stored in a 
> backup folder with sub folders named with the date pattern etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to