davsclaus commented on code in PR #28087:
URL: https://github.com/apache/camel/pull/28087#discussion_r4312255816


##########
components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java:
##########
@@ -58,6 +58,8 @@ public abstract class GenericFileConsumer<T> extends 
ScheduledBatchPollingConsum
     protected GenericFileOperations<T> operations;
     protected GenericFileProcessStrategy<T> processStrategy;
     protected volatile ShutdownRunningTask shutdownRunningTask;
+    // the fileName of the message that poll or pollEnrich polls for, during 
that poll (CAMEL-25792)
+    private volatile DynamicFileName dynamicFileName;

Review Comment:
   Thanks, done in b2b9b9c7150d.
   
   _Claude Code on behalf of davsclaus_



##########
components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java:
##########
@@ -61,6 +61,8 @@ public abstract class GenericFileEndpoint<T> extends 
ScheduledPollEndpoint imple
     protected static final int DEFAULT_IN_PROGRESS_CACHE_SIZE = 50000;
 
     private static final Logger LOG = 
LoggerFactory.getLogger(GenericFileEndpoint.class);
+    /** The file functions of the File Language, which read the file found: 
${file:name}, ${date:file:yyyyMMdd}. */
+    private static final Pattern FILE_FUNCTION = 
Pattern.compile("\\$(simple)?\\{(date(-with-timezone)?:)?file:");

Review Comment:
   Thanks, done in b2b9b9c7150d.
   
   _Claude Code on behalf of davsclaus_



-- 
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