org.apache.maven.plugin.assembly.archive.phase
Class ModuleSetAssemblyPhase
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.plugin.assembly.archive.phase.ModuleSetAssemblyPhase
- All Implemented Interfaces:
- AssemblyArchiverPhase, org.codehaus.plexus.logging.LogEnabled
public class ModuleSetAssemblyPhase
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements AssemblyArchiverPhase
Handles the <moduleSets/> top-level section of the assembly descriptor.
- Version:
- $Id: ModuleSetAssemblyPhase.java 728546 2008-12-21 22:56:51Z bentmann $
Method Summary |
protected void |
addModuleArtifact(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.project.MavenProject project,
org.codehaus.plexus.archiver.Archiver archiver,
AssemblerConfigurationSource configSource,
ModuleBinaries binaries)
|
protected void |
addModuleBinaries(ModuleBinaries binaries,
Set projects,
org.codehaus.plexus.archiver.Archiver archiver,
AssemblerConfigurationSource configSource,
AssemblyContext context)
|
protected void |
addModuleSourceFileSets(ModuleSources sources,
Set moduleProjects,
org.codehaus.plexus.archiver.Archiver archiver,
AssemblerConfigurationSource configSource)
|
protected List |
collectExcludesFromQueuedArtifacts(Set visitedArtifacts,
List binaryExcludes)
|
protected FileSet |
createFileSet(FileSet fileSet,
ModuleSources sources,
org.apache.maven.project.MavenProject moduleProject,
AssemblerConfigurationSource configSource)
|
void |
execute(Assembly assembly,
org.codehaus.plexus.archiver.Archiver archiver,
AssemblerConfigurationSource configSource)
Handle the associated section of the assembly descriptor. |
void |
execute(Assembly assembly,
org.codehaus.plexus.archiver.Archiver archiver,
AssemblerConfigurationSource configSource,
AssemblyContext context)
Handle the associated section of the assembly descriptor. |
static List |
getDependencySets(ModuleBinaries binaries)
|
static Set |
getModuleProjects(ModuleSet moduleSet,
AssemblerConfigurationSource configSource,
org.codehaus.plexus.logging.Logger logger)
|
protected boolean |
isDeprecatedModuleSourcesConfigPresent(ModuleSources sources)
Determine whether the deprecated file-set configuration directly within the ModuleSources object is present. |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModuleSetAssemblyPhase
public ModuleSetAssemblyPhase()
ModuleSetAssemblyPhase
public ModuleSetAssemblyPhase(org.apache.maven.project.MavenProjectBuilder projectBuilder,
DependencyResolver dependencyResolver,
org.codehaus.plexus.logging.Logger logger)
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 interface AssemblyArchiverPhase
- 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
AssemblyFormattingException
InvalidAssemblerConfigurationException
execute
public void execute(Assembly assembly,
org.codehaus.plexus.archiver.Archiver archiver,
AssemblerConfigurationSource configSource,
AssemblyContext context)
throws ArchiveCreationException,
AssemblyFormattingException,
InvalidAssemblerConfigurationException
- Handle the associated section of the assembly descriptor.
- Specified by:
execute
in interface AssemblyArchiverPhase
- 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.context
- Context instance that contains the collected managed
versions for dependencies, and potentially any caches that
may be useful for the assembly process.
- Throws:
ArchiveCreationException
AssemblyFormattingException
InvalidAssemblerConfigurationException
addModuleBinaries
protected void addModuleBinaries(ModuleBinaries binaries,
Set projects,
org.codehaus.plexus.archiver.Archiver archiver,
AssemblerConfigurationSource configSource,
AssemblyContext context)
throws ArchiveCreationException,
AssemblyFormattingException,
InvalidAssemblerConfigurationException
- Throws:
ArchiveCreationException
AssemblyFormattingException
InvalidAssemblerConfigurationException
getDependencySets
public static List getDependencySets(ModuleBinaries binaries)
collectExcludesFromQueuedArtifacts
protected List collectExcludesFromQueuedArtifacts(Set visitedArtifacts,
List binaryExcludes)
addModuleArtifact
protected void addModuleArtifact(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.project.MavenProject project,
org.codehaus.plexus.archiver.Archiver archiver,
AssemblerConfigurationSource configSource,
ModuleBinaries binaries)
throws ArchiveCreationException,
AssemblyFormattingException
- Throws:
ArchiveCreationException
AssemblyFormattingException
addModuleSourceFileSets
protected void addModuleSourceFileSets(ModuleSources sources,
Set moduleProjects,
org.codehaus.plexus.archiver.Archiver archiver,
AssemblerConfigurationSource configSource)
throws ArchiveCreationException,
AssemblyFormattingException
- Throws:
ArchiveCreationException
AssemblyFormattingException
isDeprecatedModuleSourcesConfigPresent
protected boolean isDeprecatedModuleSourcesConfigPresent(ModuleSources sources)
- Determine whether the deprecated file-set configuration directly within the ModuleSources object is present.
createFileSet
protected FileSet createFileSet(FileSet fileSet,
ModuleSources sources,
org.apache.maven.project.MavenProject moduleProject,
AssemblerConfigurationSource configSource)
throws AssemblyFormattingException
- Throws:
AssemblyFormattingException
getModuleProjects
public static Set getModuleProjects(ModuleSet moduleSet,
AssemblerConfigurationSource configSource,
org.codehaus.plexus.logging.Logger logger)
throws ArchiveCreationException
- Throws:
ArchiveCreationException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.