Class DefaultAssemblyArchiver

  • All Implemented Interfaces:
    AssemblyArchiver

    @Named
    public class DefaultAssemblyArchiver
    extends Object
    implements AssemblyArchiver
    Controller component designed to organize the many activities involved in creating an assembly archive. This includes locating and configuring 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 Detail

      • DefaultAssemblyArchiver

        @Inject
        public DefaultAssemblyArchiver​(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
                                       List<AssemblyArchiverPhase> assemblyPhases,
                                       Map<String,​ContainerDescriptorHandler> containerDescriptorHandlers,
                                       org.codehaus.plexus.PlexusContainer container)
    • Method Detail

      • createArchiver

        protected 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
        Creates the necessary archiver to build the distribution file.
        Parameters:
        format - Archive format
        includeBaseDir - the base directory for include.
        finalName - The final name.
        configSource - AssemblerConfigurationSource
        containerHandlers - The list of ContainerDescriptorHandler
        recompressZippedFiles - recompress zipped files.
        mergeManifestMode - how to handle already existing Manifest files
        Returns:
        archiver Archiver generated
        Throws:
        org.codehaus.plexus.archiver.ArchiverException
        org.codehaus.plexus.archiver.manager.NoSuchArchiverException
      • createWarArchiver

        protected org.codehaus.plexus.archiver.Archiver createWarArchiver()
                                                                   throws org.codehaus.plexus.archiver.manager.NoSuchArchiverException
        Throws:
        org.codehaus.plexus.archiver.manager.NoSuchArchiverException
      • createTarArchiver

        protected org.codehaus.plexus.archiver.Archiver createTarArchiver​(String format,
                                                                          org.codehaus.plexus.archiver.tar.TarLongFileMode tarLongFileMode)
                                                                   throws org.codehaus.plexus.archiver.manager.NoSuchArchiverException
        Throws:
        org.codehaus.plexus.archiver.manager.NoSuchArchiverException