@Component(role=AssemblyArchiver.class, instantiationStrategy="per-lookup") public class DefaultAssemblyArchiver extends org.codehaus.plexus.logging.AbstractLogEnabled implements AssemblyArchiver, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
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.ROLE| Modifier | Constructor and Description |
|---|---|
|
DefaultAssemblyArchiver() |
protected |
DefaultAssemblyArchiver(ArchiverManager archiverManager,
List<AssemblyArchiverPhase> assemblyPhases) |
| Modifier and Type | Method and Description |
|---|---|
void |
contextualize(org.codehaus.plexus.context.Context context) |
File |
createArchive(Assembly assembly,
String fullName,
String format,
AssemblerConfigurationSource configSource,
boolean recompressZippedFiles,
String mergeManifestMode,
Date outputTimestamp)
Create the assembly archive.
|
protected 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 Archiver |
createTarArchiver(String format,
TarLongFileMode tarLongFileMode) |
protected Archiver |
createWarArchiver() |
protected void |
setContainer(org.codehaus.plexus.PlexusContainer container) |
public DefaultAssemblyArchiver()
protected DefaultAssemblyArchiver(ArchiverManager archiverManager, List<AssemblyArchiverPhase> assemblyPhases)
archiverManager - The archive manager.assemblyPhases - The list of AssemblyArchiverPhasepublic 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 Archiver createArchiver(String format, boolean includeBaseDir, String finalName, AssemblerConfigurationSource configSource, List<ContainerDescriptorHandler> containerHandlers, boolean recompressZippedFiles, String mergeManifestMode, Date outputTimestamp) throws 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 filesArchiverExceptionNoSuchArchiverExceptionprotected Archiver createWarArchiver() throws NoSuchArchiverException
NoSuchArchiverExceptionprotected Archiver createTarArchiver(String format, TarLongFileMode tarLongFileMode) throws NoSuchArchiverException
NoSuchArchiverExceptionpublic void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizableorg.codehaus.plexus.context.ContextExceptionprotected void setContainer(org.codehaus.plexus.PlexusContainer container)
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.