Wondering whether Spring Integration SFTP inbound adapter supports a filename-regex that varies at runtime.
filename-regex will look like "^(foo_|bar_)" + new java.text.SimpleDateFormat("yyyyMMdd").
format(new java.util.Date()) +".txt$"
I have auto-startup="true" set in the inbound adapter settings.
In my test case, with a poller at fixed-rate="1000" time-unit="MILLISECONDS", it copies the right file for that day to the local directory. However, if I change the system date while it is still polling, it's not picking up the new date's file. If I rerun the test, it works.
My understanding is it should work. Is it not because it's running from JUnit?