public class DirectoryArchiver extends AbstractArchiver
DEFAULT_DIR_MODE, DEFAULT_FILE_MODE, DEFAULT_SYMLILNK_MODE, DUPLICATES_ADD, DUPLICATES_FAIL, DUPLICATES_PRESERVE, DUPLICATES_SKIP, DUPLICATES_VALID_BEHAVIORS, ROLE
Constructor and Description |
---|
DirectoryArchiver() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanUp() |
protected void |
close() |
protected void |
copyFile(ArchiveEntry entry,
String vPath)
Copies the specified file to the specified path, creating any ancestor directory structure as necessary.
|
void |
execute() |
protected String |
getArchiveType() |
void |
resetArchiver() |
addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addArchiveFinalizer, addDirectory, addDirectory, addDirectory, addDirectory, addFile, addFile, addFileSet, addResource, addResources, addSymlink, addSymlink, asArchiveEntry, asArchiveEntry, asResourceCollection, checkForced, contextualize, createArchive, getArchiveFinalizers, getDefaultDirectoryMode, getDefaultFileMode, getDestFile, getDirectoryMode, getDirs, getDuplicateBehavior, getFileMode, getFiles, getIncludeEmptyDirs, getLogger, getOverrideDirectoryMode, getOverrideFileMode, getRawDefaultDirectoryMode, getRawDefaultFileMode, getResources, hasVirtualFiles, isForced, isIgnorePermissions, isSupportingForced, isUptodate, isUseJvmChmod, revert, runArchiveFinalizers, setArchiveFilters, setArchiveFinalizers, setDefaultDirectoryMode, setDefaultFileMode, setDestFile, setDirectoryMode, setDotFileDirectory, setDuplicateBehavior, setFileMode, setForced, setIgnorePermissions, setIncludeEmptyDirs, setUseJvmChmod, validate
public void resetArchiver()
public void execute() throws ArchiverException, IOException
execute
in class AbstractArchiver
ArchiverException
IOException
protected void copyFile(ArchiveEntry entry, String vPath) throws ArchiverException, IOException
file
- The file to copy (IOException will be thrown if this does not exist)vPath
- The fully qualified path to copy the file to.ArchiverException
- If there is a problem creating the directory structureIOException
- If there is a problem copying the fileprotected void cleanUp()
cleanUp
in class AbstractArchiver
protected void close() throws IOException
close
in class AbstractArchiver
IOException
protected String getArchiveType()
getArchiveType
in class AbstractArchiver
Copyright © 2001-2014 Codehaus. All Rights Reserved.