com.atlassian.core.util.zip
Class FolderAppender

java.lang.Object
  extended by com.atlassian.core.util.zip.FolderAppender

public class FolderAppender
extends Object

This class is able to append directory recursively to the archive related to provided FileArchiver

Since:
v6.4

Constructor Summary
FolderAppender(FileArchiver fileArchiver, File rootFolderToCompress, ArchiveParams archiveParams, File archiveFile)
           
FolderAppender(FileArchiver fileArchiver, File rootFolderToCompress, String targetRootArchivePath, File archiveFile)
           
 
Method Summary
 void append()
          Appends file or directory based on parameters used to construct the FolderAppender object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FolderAppender

public FolderAppender(FileArchiver fileArchiver,
                      File rootFolderToCompress,
                      String targetRootArchivePath,
                      File archiveFile)
Parameters:
fileArchiver - the FileArchiver
rootFolderToCompress - handle to directory which will be appended to archive with all subdirectories recursively
targetRootArchivePath - the path used as target directory within archive, so all files and directories inside archive will start with this path
archiveFile - handle to result archive file, needed to avoid compressing himself

FolderAppender

public FolderAppender(FileArchiver fileArchiver,
                      File rootFolderToCompress,
                      ArchiveParams archiveParams,
                      File archiveFile)
Parameters:
fileArchiver - the FileArchiver
rootFolderToCompress - handle to directory which will be appended to archive with all subdirectories recursively
archiveParams - parameters for the files in the folder to be added the to archive
Method Detail

append

public void append()
            throws IOException
Appends file or directory based on parameters used to construct the FolderAppender object.

Throws:
IOException


Copyright © 2015 Atlassian. All rights reserved.