I am adding new camel route xml. I am having trouble getting date value in to to URI.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<route xmlns="http://www.myCompany.com/123/api/route/1.0">
//...some lines
....
<from>
<uri>...</uri>
....
.....
</from>
<to>
<uri>file://C:/mywork/${date:now:yyyy}-${date:now:MM}-${date:now:dd}</uri>
</to>
</route>
When I use this as above getting CaughtExceptionType: groovy.lang.MissingPropertyException, CaughtExceptionMessage: No such property: yyyy for class: script1465913927580309309860, StackTrace: groovy.lang.MissingPropertyException: No such property: yyyy for class: script1465913927580309309860
In to URI I have mentioned the folder name with yyyy-MM-dd format.I do not know how to get date there. In short I want to uri as 'C:/myWork/2011-01-01'. THe problem I am thinking of is because of groovy parsing the 'to uri' value Thanks in advance.