Olivier Lamy wrote:
Changing the method in p-u to FileUtils.copyDirectoryLayout( source,
target, directoryScanner ) ?
Not sure whether this is the right approach, it would complicate the
usage of this method in other contexts where people might not have the
DirectoryScanner by hand.
My original thought was just to copy the few lines of the required
for-loop directly over to DefaultMavenResourcesFiltering. There's not
too much magic in this loop.
If reusage of plexus-utils is the ultimate goal, we could also consider
to create something like
FileUtils.copyDirectory(File srcDir, File dstDir,
String[] includes, String[] excludes,
boolean copyEmptyDirs,
CopyHook fileCopyHook)
i.e. a method that basically does all the work but allows to customize
the actual file copy via a hook. The DefaultMavenResourcesFiltering
would then provide a custom hook that does the filtering stuff. Just an
idea.
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]