spring - SpringXD - It is possible to scan different dirs via File source? -
i've these dirs
|- dad dir |--- son dir 1 |---- file1.txt |---- file2.txt |--- son dir 2 |---- file3.txt
it possibile single stream, using file source
, extrapolate contents of file*.txt
example, giving in input dad dir
not standard source, can customize source use watchservicedirectoryscanner
(java 7 or later) or recursiveleafonlydirectoryscanner
not recommended large directory trees.
see spring integration reference manual information configuring file inbound channel adapter. use scanner
attribute on adapter.
Comments
Post a Comment