org.codehaus.plexus.archiver.dir

Class DirectoryArchiver

Implemented Interfaces:
Archiver

public class DirectoryArchiver
extends AbstractArchiver

A plexus archiver implementation that stores the files to archive in a directory.

Field Summary

Fields inherited from class org.codehaus.plexus.archiver.AbstractArchiver

DEFAULT_DIR_MODE, DEFAULT_FILE_MODE, defaultDirectoryMode, defaultFileMode, destFile, dirsMap, filesMap, includeEmptyDirs, logger

Fields inherited from interface org.codehaus.plexus.archiver.Archiver

ROLE

Method Summary

private void
chmod(File file, int mode)
protected void
copyFile(ArchiveEntry entry, String vPath)
Copies the specified file to the specified path, creating any ancestor directory structure as necessary.
void
createArchive()
void
resetArchiver()

Methods inherited from class org.codehaus.plexus.archiver.AbstractArchiver

addDirectory, addDirectory, addDirectory, addDirectory, addFile, addFile, getDefaultDirectoryMode, getDefaultFileMode, getDestFile, getDirs, getFiles, getIncludeEmptyDirs, getLogger, setDefaultDirectoryMode, setDefaultFileMode, setDestFile, setIncludeEmptyDirs

Method Details

chmod

private void chmod(File file,
                   int mode)
            throws ArchiverException

copyFile

protected void copyFile(ArchiveEntry entry,
                        String vPath)
            throws ArchiverException,
                   IOException
Copies the specified file to the specified path, creating any ancestor directory structure as necessary.
Parameters:
vPath - The fully qualified path to copy the file to.
Throws:
ArchiverException - If there is a problem creating the directory structure

createArchive

public void createArchive()
            throws ArchiverException,
                   IOException
Specified by:
createArchive in interface Archiver

resetArchiver

public void resetArchiver()