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, 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, validate
public void resetArchiver() throws IOException
IOException
public void execute() throws ArchiverException, IOException
execute
in class AbstractArchiver
ArchiverException
IOException
protected void copyFile(ArchiveEntry entry, String vPath) throws ArchiverException, 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 structureIOException
- If there is a problem copying the fileprotected void cleanUp() throws IOException
cleanUp
in class AbstractArchiver
IOException
protected void close() throws IOException
close
in class AbstractArchiver
IOException
protected String getArchiveType()
getArchiveType
in class AbstractArchiver
Copyright © 2001–2018 Codehaus Plexus. All rights reserved.