@Named public class DefaultAssemblyArchiver extends Object implements AssemblyArchiver
Archiver instances, executing multiple .archive.phase.AssemblyArchiverPhase instances to
 interpret the various sections of the assembly descriptor and determine which files to add, and other associated
 activities.| Constructor and Description | 
|---|
DefaultAssemblyArchiver(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
                       List<AssemblyArchiverPhase> assemblyPhases,
                       Map<String,ContainerDescriptorHandler> containerDescriptorHandlers,
                       org.codehaus.plexus.PlexusContainer container)  | 
| Modifier and Type | Method and Description | 
|---|---|
File | 
createArchive(Assembly assembly,
             String fullName,
             String format,
             AssemblerConfigurationSource configSource,
             boolean recompressZippedFiles,
             String mergeManifestMode,
             Date outputTimestamp)
Create the assembly archive. 
 | 
protected org.codehaus.plexus.archiver.Archiver | 
createArchiver(String format,
              boolean includeBaseDir,
              String finalName,
              AssemblerConfigurationSource configSource,
              List<ContainerDescriptorHandler> containerHandlers,
              boolean recompressZippedFiles,
              String mergeManifestMode,
              Date outputTimestamp)
Creates the necessary archiver to build the distribution file. 
 | 
protected org.codehaus.plexus.archiver.Archiver | 
createTarArchiver(String format,
                 org.codehaus.plexus.archiver.tar.TarLongFileMode tarLongFileMode)  | 
protected org.codehaus.plexus.archiver.Archiver | 
createWarArchiver()  | 
@Inject
public DefaultAssemblyArchiver(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
                                        List<AssemblyArchiverPhase> assemblyPhases,
                                        Map<String,ContainerDescriptorHandler> containerDescriptorHandlers,
                                        org.codehaus.plexus.PlexusContainer container)
public File createArchive(Assembly assembly, String fullName, String format, AssemblerConfigurationSource configSource, boolean recompressZippedFiles, String mergeManifestMode, Date outputTimestamp) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException
Archiver to be usedAssemblyArchiverPhase
 instances, executing each to handle a different
 top-level section of the assembly descriptor, if that section is present.createArchive in interface AssemblyArchiverassembly - The AssemblyfullName - The full name.format - The format.configSource - The AssemblerConfigurationSourcerecompressZippedFiles - recompress zipped files.mergeManifestMode - How to handle already existing Manifest files (skip, merge, mergewithoutmain)outputTimestamp - Timestamp for reproducible archive entriesArchiveCreationException - when creation failsAssemblyFormattingException - when formatting failsInvalidAssemblerConfigurationException - when the configuration is badprotected org.codehaus.plexus.archiver.Archiver createArchiver(String format, boolean includeBaseDir, String finalName, AssemblerConfigurationSource configSource, List<ContainerDescriptorHandler> containerHandlers, boolean recompressZippedFiles, String mergeManifestMode, Date outputTimestamp) throws org.codehaus.plexus.archiver.manager.NoSuchArchiverException
format - Archive formatincludeBaseDir - the base directory for include.finalName - The final name.configSource - AssemblerConfigurationSourcecontainerHandlers - The list of ContainerDescriptorHandlerrecompressZippedFiles - recompress zipped files.mergeManifestMode - how to handle already existing Manifest filesorg.codehaus.plexus.archiver.ArchiverExceptionorg.codehaus.plexus.archiver.manager.NoSuchArchiverExceptionprotected org.codehaus.plexus.archiver.Archiver createWarArchiver()
                                                           throws org.codehaus.plexus.archiver.manager.NoSuchArchiverException
org.codehaus.plexus.archiver.manager.NoSuchArchiverExceptionprotected org.codehaus.plexus.archiver.Archiver createTarArchiver(String format, org.codehaus.plexus.archiver.tar.TarLongFileMode tarLongFileMode) throws org.codehaus.plexus.archiver.manager.NoSuchArchiverException
org.codehaus.plexus.archiver.manager.NoSuchArchiverExceptionCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.