@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)
Create the assembly archive.
|
protected Archiver |
createArchiver(String format,
boolean includeBaseDir,
String finalName,
AssemblerConfigurationSource configSource,
List<ContainerDescriptorHandler> containerHandlers,
boolean recompressZippedFiles,
String mergeManifestMode)
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 AssemblyArchiverPhase
public File createArchive(Assembly assembly, String fullName, String format, AssemblerConfigurationSource configSource, boolean recompressZippedFiles, String mergeManifestMode) 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 AssemblyArchiver
assembly
- The Assembly
fullName
- The full name.format
- The format.configSource
- The AssemblerConfigurationSource
recompressZippedFiles
- recompress zipped files.mergeManifestMode
- How to handle already existing Manifest files (skip, merge, mergewithoutmain)ArchiveCreationException
- when creation failsAssemblyFormattingException
- when formatting failsInvalidAssemblerConfigurationException
- when the configurationis badprotected Archiver createArchiver(String format, boolean includeBaseDir, String finalName, AssemblerConfigurationSource configSource, List<ContainerDescriptorHandler> containerHandlers, boolean recompressZippedFiles, String mergeManifestMode) throws NoSuchArchiverException
format
- Archive formatincludeBaseDir
- 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 filesArchiverException
NoSuchArchiverException
protected Archiver createWarArchiver() throws NoSuchArchiverException
NoSuchArchiverException
protected Archiver createTarArchiver(String format, TarLongFileMode tarLongFileMode) throws NoSuchArchiverException
NoSuchArchiverException
public void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
org.codehaus.plexus.context.ContextException
protected void setContainer(org.codehaus.plexus.PlexusContainer container)
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.