Archiver, FinalizerEnabledpublic 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 | Description |
|---|---|
DirectoryArchiver() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
cleanUp() |
|
protected void |
close() |
|
protected void |
copyFile(ArchiveEntry entry,
java.lang.String vPath) |
Copies the specified file to the specified path, creating any ancestor directory structure as necessary.
|
void |
execute() |
|
protected java.lang.String |
getArchiveType() |
|
void |
resetArchiver() |
addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addArchiveFinalizer, addDirectory, addDirectory, addDirectory, addDirectory, addFile, addFile, addFileSet, addResource, addResources, addSymlink, addSymlink, asArchiveEntry, asResourceCollection, checkForced, contextualize, createArchive, getDefaultDirectoryMode, getDefaultFileMode, getDestFile, getDirectoryMode, getDuplicateBehavior, getFileMode, getFiles, getIncludeEmptyDirs, getLogger, getOverrideDirectoryMode, getOverrideFileMode, getRawDefaultFileMode, getResources, hasVirtualFiles, isForced, isIgnorePermissions, isSupportingForced, isUptodate, isUseJvmChmod, postCreateArchive, revert, runArchiveFinalizers, setArchiveFinalizers, setDefaultDirectoryMode, setDefaultFileMode, setDestFile, setDirectoryMode, setDotFileDirectory, setDuplicateBehavior, setFileMode, setForced, setIgnorePermissions, setIncludeEmptyDirs, setUseJvmChmod, validatepublic void resetArchiver()
throws java.io.IOException
java.io.IOExceptionpublic void execute()
throws ArchiverException,
java.io.IOException
execute in class AbstractArchiverArchiverExceptionjava.io.IOExceptionprotected void copyFile(ArchiveEntry entry, java.lang.String vPath) throws ArchiverException, java.io.IOException
entry - 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 structurejava.io.IOException - If there is a problem copying the fileprotected void cleanUp()
throws java.io.IOException
cleanUp in class AbstractArchiverjava.io.IOExceptionprotected void close()
throws java.io.IOException
close in class AbstractArchiverjava.io.IOExceptionprotected java.lang.String getArchiveType()
getArchiveType in class AbstractArchiver