action = new TarCopyAction(tarFile, compressor);
return tarFile;
}
private void tar(final FileCopyDetailsInternal... files) {
action.execute(new CopyActionProcessingStream() {
public void process(CopyActionProcessingStreamAction action) {
for (FileCopyDetailsInternal f : files) {
if (f.isDirectory()) {
action.processFile(f);
} else {