Class FileItemAssemblyPhase
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.plugins.assembly.archive.phase.FileItemAssemblyPhase
- All Implemented Interfaces:
AssemblyArchiverPhase
,PhaseOrder
,org.codehaus.plexus.logging.LogEnabled
@Component(role=AssemblyArchiverPhase.class,
hint="file-items")
public class FileItemAssemblyPhase
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements AssemblyArchiverPhase, PhaseOrder
Handles the top-level <files/> section of the assembly descriptor.
-
Field Summary
Fields inherited from interface org.apache.maven.plugins.assembly.archive.phase.AssemblyArchiverPhase
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(Assembly assembly, org.codehaus.plexus.archiver.Archiver archiver, AssemblerConfigurationSource configSource) Handle the associated section of the assembly descriptor.private org.codehaus.plexus.components.io.functions.ContentSupplier
getContentSupplier
(Collection<InputStream> contentStreams) int
order()
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
FileItemAssemblyPhase
public FileItemAssemblyPhase()
-
-
Method Details
-
execute
public void execute(Assembly assembly, org.codehaus.plexus.archiver.Archiver archiver, AssemblerConfigurationSource configSource) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException Handle the associated section of the assembly descriptor.- Specified by:
execute
in interfaceAssemblyArchiverPhase
- Parameters:
assembly
- The assembly descriptor to usearchiver
- The archiver used to create the assembly archive, to which files/directories/artifacts are addedconfigSource
- The configuration for this assembly build, normally derived from the plugin that launched the assembly process.- Throws:
ArchiveCreationException
- in case of an archive creation error.AssemblyFormattingException
- in case of a assembly formatting exception.InvalidAssemblerConfigurationException
- in case of an invalid assembler configuration.
-
order
public int order()- Specified by:
order
in interfacePhaseOrder
-
getContentSupplier
private org.codehaus.plexus.components.io.functions.ContentSupplier getContentSupplier(Collection<InputStream> contentStreams)
-