@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 AssemblyArchiverPhase
public 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 AssemblyArchiver
assembly
- The Assembly
fullName
- The full name.format
- The format.configSource
- The AssemblerConfigurationSource
recompressZippedFiles
- 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
- AssemblerConfigurationSource
containerHandlers
- The list of ContainerDescriptorHandler
recompressZippedFiles
- recompress zipped files.org.codehaus.plexus.archiver.ArchiverException
org.codehaus.plexus.archiver.manager.NoSuchArchiverException
protected org.codehaus.plexus.archiver.Archiver createWarArchiver() throws org.codehaus.plexus.archiver.manager.NoSuchArchiverException
org.codehaus.plexus.archiver.manager.NoSuchArchiverException
protected 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.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–2015 The Apache Software Foundation. All rights reserved.