public class DryRunArchiver extends DelgatingArchiver
DEFAULT_DIR_MODE, DEFAULT_FILE_MODE, DEFAULT_SYMLILNK_MODE, DUPLICATES_ADD, DUPLICATES_FAIL, DUPLICATES_PRESERVE, DUPLICATES_SKIP, DUPLICATES_VALID_BEHAVIORS, ROLE
Constructor and Description |
---|
DryRunArchiver(Archiver target,
org.codehaus.plexus.logging.Logger logger) |
Modifier and Type | Method and Description |
---|---|
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 |
addArchivedFileSet(File archiveFile)
Obsolete, use
Archiver.addArchivedFileSet(ArchivedFileSet) . |
void |
addArchivedFileSet(File archiveFile,
String prefix)
Obsolete, use
Archiver.addArchivedFileSet(ArchivedFileSet) . |
void |
addArchivedFileSet(File archiveFile,
String[] includes,
String[] excludes)
Obsolete, use
Archiver.addArchivedFileSet(ArchivedFileSet) . |
void |
addArchivedFileSet(File archiveFile,
String prefix,
String[] includes,
String[] excludes)
Obsolete, use
Archiver.addArchivedFileSet(ArchivedFileSet) . |
void |
addDirectory(File directory)
Obsolete, use
Archiver.addFileSet(FileSet) . |
void |
addDirectory(File directory,
String prefix)
Obsolete, use
Archiver.addFileSet(FileSet) . |
void |
addDirectory(File directory,
String[] includes,
String[] excludes)
Obsolete, use
Archiver.addFileSet(FileSet) .You can use "inline" of this method in your
IDE to get the proper implementation for this release. |
void |
addDirectory(File directory,
String prefix,
String[] includes,
String[] excludes)
Obsolete, use
Archiver.addFileSet(FileSet) . |
void |
addFile(File inputFile,
String destFileName) |
void |
addFile(File inputFile,
String destFileName,
int permissions) |
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 |
createArchive() |
void |
setDotFileDirectory(File dotFileDirectory) |
getDefaultDirectoryMode, getDefaultFileMode, getDestFile, getDirectoryMode, getDuplicateBehavior, getFileMode, getFiles, getIncludeEmptyDirs, getOverrideDirectoryMode, getOverrideFileMode, getResources, isForced, isIgnorePermissions, isSupportingForced, isUseJvmChmod, setDefaultDirectoryMode, setDefaultFileMode, setDestFile, setDirectoryMode, setDuplicateBehavior, setFileMode, setForced, setIgnorePermissions, setIncludeEmptyDirs, setUseJvmChmod
public DryRunArchiver(Archiver target, org.codehaus.plexus.logging.Logger logger)
public void addArchivedFileSet(@Nonnull File archiveFile, String prefix, String[] includes, String[] excludes)
Archiver.addArchivedFileSet(ArchivedFileSet)
. You can use "inline" of this method in your
IDE to get the proper implementation for this release.addArchivedFileSet
in interface Archiver
addArchivedFileSet
in class DelgatingArchiver
public void addArchivedFileSet(@Nonnull File archiveFile, String prefix) throws ArchiverException
Archiver.addArchivedFileSet(ArchivedFileSet)
. You can use "inline" of this method in your
IDE to get the proper implementation for this release.addArchivedFileSet
in interface Archiver
addArchivedFileSet
in class DelgatingArchiver
ArchiverException
public void addArchivedFileSet(File archiveFile, String[] includes, String[] excludes) throws ArchiverException
Archiver.addArchivedFileSet(ArchivedFileSet)
. You can use "inline" of this method in your
IDE to get the proper implementation for this release.addArchivedFileSet
in interface Archiver
addArchivedFileSet
in class DelgatingArchiver
ArchiverException
public void addArchivedFileSet(@Nonnull File archiveFile) throws ArchiverException
Archiver.addArchivedFileSet(ArchivedFileSet)
. You can use "inline" of this method in your
IDE to get the proper implementation for this release.addArchivedFileSet
in interface Archiver
addArchivedFileSet
in class DelgatingArchiver
ArchiverException
public void addDirectory(@Nonnull File directory, String prefix, String[] includes, String[] excludes) throws ArchiverException
Archiver.addFileSet(FileSet)
.
You can use "inline" of this method in your
IDE to get the proper implementation for this release.addDirectory
in interface Archiver
addDirectory
in class DelgatingArchiver
ArchiverException
public void addSymlink(String symlinkName, String symlinkDestination) throws ArchiverException
addSymlink
in interface Archiver
addSymlink
in class DelgatingArchiver
ArchiverException
public void addSymlink(String symlinkName, int permissions, String symlinkDestination) throws ArchiverException
addSymlink
in interface Archiver
addSymlink
in class DelgatingArchiver
ArchiverException
public void addDirectory(@Nonnull File directory, String prefix) throws ArchiverException
Archiver.addFileSet(FileSet)
.
You can use "inline" of this method in your
IDE to get the proper implementation for this release.addDirectory
in interface Archiver
addDirectory
in class DelgatingArchiver
ArchiverException
public void addDirectory(@Nonnull File directory, String[] includes, String[] excludes) throws ArchiverException
Archiver.addFileSet(FileSet)
.You can use "inline" of this method in your
IDE to get the proper implementation for this release.addDirectory
in interface Archiver
addDirectory
in class DelgatingArchiver
ArchiverException
public void addDirectory(@Nonnull File directory) throws ArchiverException
Archiver.addFileSet(FileSet)
.
You can use "inline" of this method in your
IDE to get the proper implementation for this release.addDirectory
in interface Archiver
addDirectory
in class DelgatingArchiver
ArchiverException
public void addFile(@Nonnull File inputFile, @Nonnull String destFileName, int permissions) throws ArchiverException
addFile
in interface Archiver
addFile
in class DelgatingArchiver
ArchiverException
public void addFile(@Nonnull File inputFile, @Nonnull String destFileName) throws ArchiverException
addFile
in interface Archiver
addFile
in class DelgatingArchiver
ArchiverException
public void createArchive() throws ArchiverException, IOException
createArchive
in interface Archiver
createArchive
in class DelgatingArchiver
ArchiverException
IOException
public void setDotFileDirectory(File dotFileDirectory)
setDotFileDirectory
in interface Archiver
setDotFileDirectory
in class DelgatingArchiver
public void addArchivedFileSet(ArchivedFileSet fileSet) throws ArchiverException
Archiver.addArchivedFileSet(File)
, Archiver.addArchivedFileSet(File, String[], String[])
, and
Archiver.addArchivedFileSet(File, String, String[], String[])
. However, as these methods are in widespread use,
they cannot easily be made deprecated.
Stream transformers are supported on this methodaddArchivedFileSet
in interface Archiver
addArchivedFileSet
in class DelgatingArchiver
ArchiverException
public void addArchivedFileSet(ArchivedFileSet fileSet, Charset charset) throws ArchiverException
Archiver
Archiver.addArchivedFileSet(File)
, Archiver.addArchivedFileSet(File, String[], String[])
, and
Archiver.addArchivedFileSet(File, String, String[], String[])
. However, as these methods are in widespread use,
they cannot easily be made deprecated.addArchivedFileSet
in interface Archiver
addArchivedFileSet
in class DelgatingArchiver
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 methodArchiverException
public void addFileSet(@Nonnull FileSet fileSet) throws ArchiverException
Archiver.addDirectory(File)
,
Archiver.addDirectory(File, String)
, Archiver.addDirectory(File, String[], String[])
, and
Archiver.addDirectory(File, String, String[], String[])
. However, as these methods are in widespread use, they
cannot easily be made deprecated.addFileSet
in interface Archiver
addFileSet
in class DelgatingArchiver
ArchiverException
- Adding the file set failed.public void addResource(org.codehaus.plexus.components.io.resources.PlexusIoResource resource, String destFileName, int permissions) throws ArchiverException
Archiver
addResource
in interface Archiver
addResource
in class DelgatingArchiver
ArchiverException
public void addResources(org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection resources) throws ArchiverException
Archiver
addResources
in interface Archiver
addResources
in class DelgatingArchiver
ArchiverException
Copyright © 2001-2016 Codehaus. All Rights Reserved.