Description
In the example below, if I print the route at startup with "camel.springboot.dump-routes=true", the "from" URI is not set, but the "to" URI is set because I call "endpoint.getURI()"
Input :
from(file("/inputDir/")) .log("New file: ${header.CamelFileName}") .to(file("/outputDir/").getUri());
Output :
2021-09-03 12:29:03.485 INFO 27620 --- [ main] o.apache.camel.impl.DefaultCamelContext : <routes xmlns="http://camel.apache.org/schema/spring"> <route id="route1"> <from/> <log id="log3" message="New file: ${header.CamelFileName}"/> <to id="to1" uri="file:///outputDir/"/> </route> </routes>
I don't know if it's a bug or not, but in the documentation (https://camel.apache.org/manual/latest/Endpoint-dsl.html) the example does not specify to call "getURI()"