@Component(role=AssemblyArchiver.class) public class DefaultAssemblyArchiver extends org.codehaus.plexus.logging.AbstractLogEnabled implements AssemblyArchiver, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Archiver instances, executing multiple 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(org.codehaus.plexus.archiver.manager.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)
Create the assembly archive.
|
protected org.codehaus.plexus.archiver.Archiver |
createArchiver(String format,
boolean includeBaseDir,
String finalName,
AssemblerConfigurationSource configSource,
List<ContainerDescriptorHandler> containerHandlers,
boolean recompressZippedFiles)
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() |
protected void |
setContainer(org.codehaus.plexus.PlexusContainer container) |
public DefaultAssemblyArchiver()
protected DefaultAssemblyArchiver(org.codehaus.plexus.archiver.manager.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) 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.ArchiveCreationException - when creation failsAssemblyFormattingException - when formatting failsInvalidAssemblerConfigurationException - when the configurationis badprotected org.codehaus.plexus.archiver.Archiver createArchiver(String format, boolean includeBaseDir, String finalName, AssemblerConfigurationSource configSource, List<ContainerDescriptorHandler> containerHandlers, boolean recompressZippedFiles) 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.org.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.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–2015 The Apache Software Foundation. All rights reserved.