gnodet-bot commented on code in PR #29523:
URL: https://github.com/apache/camel/pull/29523#discussion_r4519251216


##########
docs/user-manual/modules/ROOT/pages/camel-jbang-managing.adoc:
##########
@@ -968,6 +968,10 @@ For a path with a parameter, `--feed` is the path to call, 
with an optional meth
 server with its own address on this machine (netty-http, undertow, jetty) is 
fed at that address, called as localhost;
 one on another host is not fed.
 
+A route that starts from `file:<folder>` is fed with files: each message is 
written as a file into the folder the route
+polls, named so the route takes it (`chaos-<time>-<n>.json`, with the 
extension of its `include` or `antInclude` filter,
+else of the body). A `CamelFileName` in `--header` names the files instead.

Review Comment:
   ⚠️ **Documentation inaccuracy**: the pattern `chaos-<time>-<n>.json` implies 
every file has a `-<n>` suffix, but `fileName()` returns `chaos-<time>.<ext>` 
without numbering — the `-<n>` part is only appended by 
`RepeatedSend.numbered()` when repeat > 1. A single-message feed writes 
`chaos-<time>.json` with no index.
   
   ```suggestion
   A route that starts from `file:<folder>` is fed with files: each message is 
written as a file into the folder the route
   polls, named so the route takes it (`chaos-<time>.<ext>`, or 
`chaos-<time>-<n>.<ext>` when repeated, with the extension of its `include` or 
`antInclude` filter,
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to