Class DryRunArchiver
java.lang.Object
org.codehaus.plexus.archiver.diags.DelgatingArchiver
org.codehaus.plexus.archiver.diags.DryRunArchiver
- All Implemented Interfaces:
Archiver
A dry run archiver that does nothing. Some methods fall through to the underlying
archiver, but no actions are executed.
-
Field Summary
Fields inherited from interface org.codehaus.plexus.archiver.Archiver
DEFAULT_DIR_MODE, DEFAULT_FILE_MODE, DEFAULT_SYMLILNK_MODE, DUPLICATES_ADD, DUPLICATES_FAIL, DUPLICATES_PRESERVE, DUPLICATES_SKIP, DUPLICATES_VALID_BEHAVIORS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addArchivedFileSet
(File archiveFile) Obsolete, useArchiver.addArchivedFileSet(ArchivedFileSet)
.void
addArchivedFileSet
(File archiveFile, String prefix) Obsolete, useArchiver.addArchivedFileSet(ArchivedFileSet)
.void
addArchivedFileSet
(File archiveFile, String[] includes, String[] excludes) Obsolete, useArchiver.addArchivedFileSet(ArchivedFileSet)
.void
addArchivedFileSet
(File archiveFile, String prefix, String[] includes, String[] excludes) Obsolete, useArchiver.addArchivedFileSet(ArchivedFileSet)
.void
addArchivedFileSet
(ArchivedFileSet fileSet) Adds the given archive file set to the archive.void
addArchivedFileSet
(ArchivedFileSet fileSet, Charset charset) Adds the given archive file set to the archive.void
addDirectory
(File directory) Obsolete, useArchiver.addFileSet(FileSet)
.void
addDirectory
(File directory, String prefix) Obsolete, useArchiver.addFileSet(FileSet)
.void
addDirectory
(File directory, String[] includes, String[] excludes) Obsolete, useArchiver.addFileSet(FileSet)
.void
addDirectory
(File directory, String prefix, String[] includes, String[] excludes) Obsolete, useArchiver.addFileSet(FileSet)
.void
void
void
addFileSet
(FileSet fileSet) Adds the given file set to the archive.void
addResource
(org.codehaus.plexus.components.io.resources.PlexusIoResource resource, String destFileName, int permissions) Adds the given resource collection to the archive.void
addResources
(org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection resources) Adds the given resource collection to the archive.void
addSymlink
(String symlinkName, int permissions, String symlinkDestination) void
addSymlink
(String symlinkName, String symlinkDestination) void
void
setDotFileDirectory
(File dotFileDirectory) Methods inherited from class org.codehaus.plexus.archiver.diags.DelgatingArchiver
configureReproducible, configureReproducibleBuild, getDefaultDirectoryMode, getDefaultFileMode, getDestFile, getDirectoryMode, getDuplicateBehavior, getFileMode, getFiles, getIncludeEmptyDirs, getLastModifiedDate, getLastModifiedTime, getOverrideDirectoryMode, getOverrideFileMode, getOverrideGid, getOverrideGroupName, getOverrideUid, getOverrideUserName, getResources, getUmask, isForced, isIgnorePermissions, isSupportingForced, isUseJvmChmod, setDefaultDirectoryMode, setDefaultFileMode, setDestFile, setDirectoryMode, setDuplicateBehavior, setFileMode, setFilenameComparator, setForced, setIgnorePermissions, setIncludeEmptyDirs, setLastModifiedDate, setLastModifiedTime, setOverrideGid, setOverrideGroupName, setOverrideUid, setOverrideUserName, setUmask, setUseJvmChmod
-
Constructor Details
-
DryRunArchiver
-
-
Method Details
-
addArchivedFileSet
public void addArchivedFileSet(@Nonnull File archiveFile, String prefix, String[] includes, String[] excludes) Obsolete, useArchiver.addArchivedFileSet(ArchivedFileSet)
.- Specified by:
addArchivedFileSet
in interfaceArchiver
- Overrides:
addArchivedFileSet
in classDelgatingArchiver
-
addArchivedFileSet
Obsolete, useArchiver.addArchivedFileSet(ArchivedFileSet)
.- Specified by:
addArchivedFileSet
in interfaceArchiver
- Overrides:
addArchivedFileSet
in classDelgatingArchiver
- Throws:
ArchiverException
-
addArchivedFileSet
public void addArchivedFileSet(File archiveFile, String[] includes, String[] excludes) throws ArchiverException Obsolete, useArchiver.addArchivedFileSet(ArchivedFileSet)
.- Specified by:
addArchivedFileSet
in interfaceArchiver
- Overrides:
addArchivedFileSet
in classDelgatingArchiver
- Throws:
ArchiverException
-
addArchivedFileSet
Obsolete, useArchiver.addArchivedFileSet(ArchivedFileSet)
.- Specified by:
addArchivedFileSet
in interfaceArchiver
- Overrides:
addArchivedFileSet
in classDelgatingArchiver
- Throws:
ArchiverException
-
addDirectory
public void addDirectory(@Nonnull File directory, String prefix, String[] includes, String[] excludes) throws ArchiverException Obsolete, useArchiver.addFileSet(FileSet)
.- Specified by:
addDirectory
in interfaceArchiver
- Overrides:
addDirectory
in classDelgatingArchiver
- Throws:
ArchiverException
-
addSymlink
- Specified by:
addSymlink
in interfaceArchiver
- Overrides:
addSymlink
in classDelgatingArchiver
- Throws:
ArchiverException
-
addSymlink
public void addSymlink(String symlinkName, int permissions, String symlinkDestination) throws ArchiverException - Specified by:
addSymlink
in interfaceArchiver
- Overrides:
addSymlink
in classDelgatingArchiver
- Throws:
ArchiverException
-
addDirectory
Obsolete, useArchiver.addFileSet(FileSet)
.- Specified by:
addDirectory
in interfaceArchiver
- Overrides:
addDirectory
in classDelgatingArchiver
- Throws:
ArchiverException
-
addDirectory
public void addDirectory(@Nonnull File directory, String[] includes, String[] excludes) throws ArchiverException Obsolete, useArchiver.addFileSet(FileSet)
.- Specified by:
addDirectory
in interfaceArchiver
- Overrides:
addDirectory
in classDelgatingArchiver
- Throws:
ArchiverException
-
addDirectory
Obsolete, useArchiver.addFileSet(FileSet)
.- Specified by:
addDirectory
in interfaceArchiver
- Overrides:
addDirectory
in classDelgatingArchiver
- Throws:
ArchiverException
-
addFile
public void addFile(@Nonnull File inputFile, @Nonnull String destFileName, int permissions) throws ArchiverException - Specified by:
addFile
in interfaceArchiver
- Overrides:
addFile
in classDelgatingArchiver
- Throws:
ArchiverException
-
addFile
- Specified by:
addFile
in interfaceArchiver
- Overrides:
addFile
in classDelgatingArchiver
- Throws:
ArchiverException
-
createArchive
- Specified by:
createArchive
in interfaceArchiver
- Overrides:
createArchive
in classDelgatingArchiver
- Throws:
ArchiverException
IOException
-
setDotFileDirectory
- Specified by:
setDotFileDirectory
in interfaceArchiver
- Overrides:
setDotFileDirectory
in classDelgatingArchiver
-
addArchivedFileSet
Adds the given archive file set to the archive. This method is basically obsoletingArchiver.addArchivedFileSet(File)
,Archiver.addArchivedFileSet(File, String[], String[])
, andArchiver.addArchivedFileSet(File, String, String[], String[])
. However, as these methods are in widespread use, they cannot easily be deprecated. Stream transformers are supported on this method- Specified by:
addArchivedFileSet
in interfaceArchiver
- Overrides:
addArchivedFileSet
in classDelgatingArchiver
- Throws:
ArchiverException
-
addArchivedFileSet
Description copied from interface:Archiver
Adds the given archive file set to the archive. This method is basically obsoletingArchiver.addArchivedFileSet(File)
,Archiver.addArchivedFileSet(File, String[], String[])
, andArchiver.addArchivedFileSet(File, String, String[], String[])
. However, as these methods are in widespread use, they cannot easily be deprecated.- Specified by:
addArchivedFileSet
in interfaceArchiver
- Overrides:
addArchivedFileSet
in classDelgatingArchiver
- Parameters:
fileSet
- the fileSet to addcharset
- the encoding to use, particularly useful to specific non-standard filename encodings for some kinds of archives (for instance zip files) Stream transformers are supported on this method- Throws:
ArchiverException
-
addFileSet
Adds the given file set to the archive. This method is basically obsoletingArchiver.addDirectory(File)
,Archiver.addDirectory(File, String)
,Archiver.addDirectory(File, String[], String[])
, andArchiver.addDirectory(File, String, String[], String[])
. However, as these methods are in widespread use, they cannot easily be deprecated.- Specified by:
addFileSet
in interfaceArchiver
- Overrides:
addFileSet
in classDelgatingArchiver
- Throws:
ArchiverException
- Adding the file set failed.
-
addResource
public void addResource(org.codehaus.plexus.components.io.resources.PlexusIoResource resource, String destFileName, int permissions) throws ArchiverException Description copied from interface:Archiver
Adds the given resource collection to the archive. Stream transformers are *not* supported on this method- Specified by:
addResource
in interfaceArchiver
- Overrides:
addResource
in classDelgatingArchiver
- Throws:
ArchiverException
-
addResources
public void addResources(org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection resources) throws ArchiverException Description copied from interface:Archiver
Adds the given resource collection to the archive. Stream transformers are supported on this method- Specified by:
addResources
in interfaceArchiver
- Overrides:
addResources
in classDelgatingArchiver
- Throws:
ArchiverException
-