Suman Dhar
Suman Dhar

Reputation: 111

How to use 'doneFileName' property of Camel for file name with double extension?

I need to route and delete a tar.gz file using apache camel. My file name is filename.tar.gz and trigger file name is filename.trg. So, if I use this uri in from() - "&doneFileName=${file:name.noext}.trg camel routes the file with the Trigger file name - filename.tar.trg. But I need the doneFileName as filename.trg.

How can I achieve this?? I tried to nest the ${file:name.noext} but seems not working.

Upvotes: 3

Views: 1245

Answers (1)

Claus Ibsen
Claus Ibsen

Reputation: 55525

Ah its in fact a bug in Apache Camel. I have logged a ticket to get it to support file extensions having double dots

Upvotes: 2

Related Questions