Example 2

Move all Java files in the directory hierarchy under d to a directory hierarchy under jDir.

The difference between this example and the previous example is that this example uses a RecursiveProcessTF where the previous example used a RecursiveActionTF. When using a RecursiveProcessTF, all processed objects get their individual target location decided by that task's targetStrategy.

JavaScript

new RecursiveProcessTF(). addSource(new DirectoryAndFilter(d, new EFileNameExtensionFilter("java"))). setTarget(jDir). setTaskFactory( new MoveTF()).run();


* An EntityFS-aware task is implemented using EntityFS. This means that it uses the filter settings of DirectoryView:s and also that it often can work with other file system implementations than File-based, such as the RAM file system.