@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(ArchiverManager archiverManager,
DependencyResolver resolver,
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 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 Archiver |
createTarArchiver(String format,
String tarLongFileMode) |
protected Archiver |
createWarArchiver() |
protected void |
setContainer(org.codehaus.plexus.PlexusContainer container) |
public DefaultAssemblyArchiver()
protected DefaultAssemblyArchiver(ArchiverManager archiverManager, DependencyResolver resolver, List<AssemblyArchiverPhase> assemblyPhases)
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
ArchiveCreationException
AssemblyFormattingException
InvalidAssemblerConfigurationException
protected Archiver createArchiver(String format, boolean includeBaseDir, String finalName, AssemblerConfigurationSource configSource, List<ContainerDescriptorHandler> containerHandlers, boolean recompressZippedFiles) throws ArchiverException, NoSuchArchiverException
format
- Archive formatincludeBaseDir
- finalName
- configSource
- containerHandlers
- recompressZippedFiles
- ArchiverException
NoSuchArchiverException
protected Archiver createWarArchiver() throws NoSuchArchiverException
NoSuchArchiverException
protected Archiver createTarArchiver(String format, String tarLongFileMode) throws NoSuchArchiverException, ArchiverException
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–2014 The Apache Software Foundation. All rights reserved.