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,
DependencyResolver resolver,
java.util.List<AssemblyArchiverPhase> assemblyPhases) |
| Modifier and Type | Method and Description |
|---|---|
void |
contextualize(org.codehaus.plexus.context.Context context) |
java.io.File |
createArchive(Assembly assembly,
java.lang.String fullName,
java.lang.String format,
AssemblerConfigurationSource configSource)
Create the assembly archive.
|
protected org.codehaus.plexus.archiver.Archiver |
createArchiver(java.lang.String format,
boolean includeBaseDir,
java.lang.String finalName,
AssemblerConfigurationSource configSource,
java.util.List<ContainerDescriptorHandler> containerHandlers)
Creates the necessary archiver to build the distribution file.
|
protected org.codehaus.plexus.archiver.Archiver |
createTarArchiver(java.lang.String format,
java.lang.String 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,
DependencyResolver resolver,
java.util.List<AssemblyArchiverPhase> assemblyPhases)
public java.io.File createArchive(Assembly assembly, java.lang.String fullName, java.lang.String format, AssemblerConfigurationSource configSource) 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 AssemblyArchiverArchiveCreationExceptionAssemblyFormattingExceptionInvalidAssemblerConfigurationExceptionprotected org.codehaus.plexus.archiver.Archiver createArchiver(java.lang.String format,
boolean includeBaseDir,
java.lang.String finalName,
AssemblerConfigurationSource configSource,
java.util.List<ContainerDescriptorHandler> containerHandlers)
throws org.codehaus.plexus.archiver.ArchiverException,
org.codehaus.plexus.archiver.manager.NoSuchArchiverException
format - Archive formatincludeBaseDir - finalName - configSource - containerHandlers - 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(java.lang.String format,
java.lang.String tarLongFileMode)
throws org.codehaus.plexus.archiver.manager.NoSuchArchiverException,
org.codehaus.plexus.archiver.ArchiverException
org.codehaus.plexus.archiver.manager.NoSuchArchiverExceptionorg.codehaus.plexus.archiver.ArchiverExceptionpublic 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-2014 The Apache Software Foundation. All Rights Reserved.