Class AssemblyProxyArchiver
java.lang.Object
org.apache.maven.plugins.assembly.archive.archiver.AssemblyProxyArchiver
- All Implemented Interfaces:
org.codehaus.plexus.archiver.Archiver
Delegating archiver implementation that supports:
- dry-running (where the delegate archiver is never actually called)
- prefixing (where all paths have a set global prefix prepended before addition)
- duplication checks on archive additions (for archive-file path + prefix)
- Author:
- jdcasey
-
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
ConstructorDescriptionAssemblyProxyArchiver
(String rootPrefix, org.codehaus.plexus.archiver.Archiver delegate, List<ContainerDescriptorHandler> containerDescriptorHandlers, List<org.codehaus.plexus.components.io.fileselectors.FileSelector> extraSelectors, List<org.codehaus.plexus.archiver.ArchiveFinalizer> extraFinalizers, File assemblyWorkDir) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArchivedFileSet
(File archiveFile) Deprecated.void
addArchivedFileSet
(File archiveFile, String prefix) Deprecated.void
addArchivedFileSet
(File archiveFile, String[] includes, String[] excludes) Deprecated.void
addArchivedFileSet
(File archiveFile, String prefix, String[] includes, String[] excludes) Deprecated.void
addArchivedFileSet
(org.codehaus.plexus.archiver.ArchivedFileSet fileSet) void
addArchivedFileSet
(org.codehaus.plexus.archiver.ArchivedFileSet archivedFileSet, Charset charset) void
addDirectory
(File directory) Deprecated.void
addDirectory
(File directory, String prefix) Deprecated.void
addDirectory
(File directory, String[] includes, String[] excludes) Deprecated.void
addDirectory
(File directory, String prefix, String[] includes, String[] excludes) Deprecated.void
void
void
addFileSet
(org.codehaus.plexus.archiver.FileSet fileSet) void
addResource
(org.codehaus.plexus.components.io.resources.PlexusIoResource resource, String destFileName, int permissions) void
addResources
(org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection resources) void
addSymlink
(String symlinkName, int permissions, String symlinkDestination) void
addSymlink
(String symlinkName, String symlinkDestination) void
configureReproducible
(Date outputTimestamp) Deprecated.void
configureReproducibleBuild
(FileTime fileTime) void
int
int
int
int
getFiles()
boolean
Deprecated.int
int
int
int
org.codehaus.plexus.archiver.ResourceIterator
int
getUmask()
boolean
isForced()
boolean
boolean
boolean
Deprecated.void
setDefaultDirectoryMode
(int mode) void
setDefaultFileMode
(int mode) void
setDestFile
(File destFile) void
setDirectoryMode
(int mode) void
setDotFileDirectory
(File dotFileDirectory) void
setDuplicateBehavior
(String duplicate) void
setFileMode
(int mode) void
setFilenameComparator
(Comparator<String> filenameComparator) void
setForced
(boolean forced) void
setIgnorePermissions
(boolean ignorePermissions) void
setIncludeEmptyDirs
(boolean includeEmptyDirs) void
setLastModifiedDate
(Date lastModifiedDate) Deprecated.void
setLastModifiedTime
(FileTime fileTime) void
setOverrideGid
(int gid) void
setOverrideGroupName
(String groupName) void
setOverrideUid
(int uid) void
setOverrideUserName
(String userName) void
setUmask
(int umask) void
setUseJvmChmod
(boolean useJvmChmod) Deprecated.
-
Constructor Details
-
AssemblyProxyArchiver
public AssemblyProxyArchiver(String rootPrefix, org.codehaus.plexus.archiver.Archiver delegate, List<ContainerDescriptorHandler> containerDescriptorHandlers, List<org.codehaus.plexus.components.io.fileselectors.FileSelector> extraSelectors, List<org.codehaus.plexus.archiver.ArchiveFinalizer> extraFinalizers, File assemblyWorkDir)
-
-
Method Details
-
addArchivedFileSet
@Deprecated public void addArchivedFileSet(File archiveFile, String prefix, String[] includes, String[] excludes) Deprecated.- Specified by:
addArchivedFileSet
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addArchivedFileSet
Deprecated.- Specified by:
addArchivedFileSet
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addArchivedFileSet
Deprecated.- Specified by:
addArchivedFileSet
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addArchivedFileSet
Deprecated.- Specified by:
addArchivedFileSet
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addDirectory
@Deprecated public void addDirectory(File directory, String prefix, String[] includes, String[] excludes) Deprecated.- Specified by:
addDirectory
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addSymlink
- Specified by:
addSymlink
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addSymlink
- Specified by:
addSymlink
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addDirectory
Deprecated.- Specified by:
addDirectory
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addDirectory
Deprecated.- Specified by:
addDirectory
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addDirectory
Deprecated.- Specified by:
addDirectory
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addFile
- Specified by:
addFile
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addFile
- Specified by:
addFile
in interfaceorg.codehaus.plexus.archiver.Archiver
-
createArchive
- Specified by:
createArchive
in interfaceorg.codehaus.plexus.archiver.Archiver
- Throws:
IOException
-
getDefaultDirectoryMode
public int getDefaultDirectoryMode()- Specified by:
getDefaultDirectoryMode
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setDefaultDirectoryMode
public void setDefaultDirectoryMode(int mode) - Specified by:
setDefaultDirectoryMode
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getDefaultFileMode
public int getDefaultFileMode()- Specified by:
getDefaultFileMode
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setDefaultFileMode
public void setDefaultFileMode(int mode) - Specified by:
setDefaultFileMode
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getDestFile
- Specified by:
getDestFile
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setDestFile
- Specified by:
setDestFile
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getFiles
- Specified by:
getFiles
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getIncludeEmptyDirs
public boolean getIncludeEmptyDirs()- Specified by:
getIncludeEmptyDirs
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setIncludeEmptyDirs
public void setIncludeEmptyDirs(boolean includeEmptyDirs) - Specified by:
setIncludeEmptyDirs
in interfaceorg.codehaus.plexus.archiver.Archiver
-
isForced
public boolean isForced()- Specified by:
isForced
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setForced
public void setForced(boolean forced) - Specified by:
setForced
in interfaceorg.codehaus.plexus.archiver.Archiver
-
isSupportingForced
public boolean isSupportingForced()- Specified by:
isSupportingForced
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setDotFileDirectory
- Specified by:
setDotFileDirectory
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addArchivedFileSet
public void addArchivedFileSet(org.codehaus.plexus.archiver.ArchivedFileSet fileSet) - Specified by:
addArchivedFileSet
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addArchivedFileSet
public void addArchivedFileSet(org.codehaus.plexus.archiver.ArchivedFileSet archivedFileSet, Charset charset) - Specified by:
addArchivedFileSet
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addFileSet
public void addFileSet(org.codehaus.plexus.archiver.FileSet fileSet) - Specified by:
addFileSet
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addResource
public void addResource(org.codehaus.plexus.components.io.resources.PlexusIoResource resource, String destFileName, int permissions) - Specified by:
addResource
in interfaceorg.codehaus.plexus.archiver.Archiver
-
addResources
public void addResources(org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection resources) - Specified by:
addResources
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getResources
public org.codehaus.plexus.archiver.ResourceIterator getResources()- Specified by:
getResources
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getDuplicateBehavior
- Specified by:
getDuplicateBehavior
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setDuplicateBehavior
- Specified by:
setDuplicateBehavior
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getDirectoryMode
public int getDirectoryMode()- Specified by:
getDirectoryMode
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setDirectoryMode
public void setDirectoryMode(int mode) - Specified by:
setDirectoryMode
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getFileMode
public int getFileMode()- Specified by:
getFileMode
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setFileMode
public void setFileMode(int mode) - Specified by:
setFileMode
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getOverrideDirectoryMode
public int getOverrideDirectoryMode()- Specified by:
getOverrideDirectoryMode
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getOverrideFileMode
public int getOverrideFileMode()- Specified by:
getOverrideFileMode
in interfaceorg.codehaus.plexus.archiver.Archiver
-
isUseJvmChmod
Deprecated.- Specified by:
isUseJvmChmod
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setUseJvmChmod
Deprecated.- Specified by:
setUseJvmChmod
in interfaceorg.codehaus.plexus.archiver.Archiver
-
isIgnorePermissions
public boolean isIgnorePermissions()- Specified by:
isIgnorePermissions
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setIgnorePermissions
public void setIgnorePermissions(boolean ignorePermissions) - Specified by:
setIgnorePermissions
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setLastModifiedDate
Deprecated.- Specified by:
setLastModifiedDate
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getLastModifiedDate
Deprecated.- Specified by:
getLastModifiedDate
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setFilenameComparator
- Specified by:
setFilenameComparator
in interfaceorg.codehaus.plexus.archiver.Archiver
-
configureReproducible
Deprecated.- Specified by:
configureReproducible
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setOverrideUid
public void setOverrideUid(int uid) - Specified by:
setOverrideUid
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setOverrideUserName
- Specified by:
setOverrideUserName
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getOverrideUid
public int getOverrideUid()- Specified by:
getOverrideUid
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getOverrideUserName
- Specified by:
getOverrideUserName
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setOverrideGid
public void setOverrideGid(int gid) - Specified by:
setOverrideGid
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setOverrideGroupName
- Specified by:
setOverrideGroupName
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getOverrideGid
public int getOverrideGid()- Specified by:
getOverrideGid
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getOverrideGroupName
- Specified by:
getOverrideGroupName
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setLastModifiedTime
- Specified by:
setLastModifiedTime
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getLastModifiedTime
- Specified by:
getLastModifiedTime
in interfaceorg.codehaus.plexus.archiver.Archiver
-
setUmask
public void setUmask(int umask) - Specified by:
setUmask
in interfaceorg.codehaus.plexus.archiver.Archiver
-
getUmask
public int getUmask()- Specified by:
getUmask
in interfaceorg.codehaus.plexus.archiver.Archiver
-
configureReproducibleBuild
- Specified by:
configureReproducibleBuild
in interfaceorg.codehaus.plexus.archiver.Archiver
-