Class DefaultAssemblyReader
java.lang.Object
org.apache.maven.plugins.assembly.io.DefaultAssemblyReader
- All Implemented Interfaces:
AssemblyReader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator
createProjectInterpolator
(org.apache.maven.project.MavenProject project) getAssemblyForDescriptorReference
(String ref, AssemblerConfigurationSource configSource) getAssemblyFromDescriptorFile
(File file, AssemblerConfigurationSource configSource) void
includeSiteInAssembly
(Assembly assembly, AssemblerConfigurationSource configSource) protected void
mergeComponentsWithMainAssembly
(Assembly assembly, File assemblyDir, AssemblerConfigurationSource configSource, ComponentXpp3Reader.ContentTransformer transformer) Add the contents of all included components to main assemblyprotected void
mergeComponentWithAssembly
(Component component, Assembly assembly) Add the content of a single Component to main assemblyreadAssemblies
(AssemblerConfigurationSource configSource) readAssembly
(Reader reader, String locationDescription, File assemblyDir, AssemblerConfigurationSource configSource)
-
Constructor Details
-
DefaultAssemblyReader
public DefaultAssemblyReader()
-
-
Method Details
-
createProjectInterpolator
public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator createProjectInterpolator(org.apache.maven.project.MavenProject project) -
readAssemblies
public List<Assembly> readAssemblies(AssemblerConfigurationSource configSource) throws AssemblyReadException, InvalidAssemblerConfigurationException - Specified by:
readAssemblies
in interfaceAssemblyReader
- Throws:
AssemblyReadException
InvalidAssemblerConfigurationException
-
getAssemblyForDescriptorReference
public Assembly getAssemblyForDescriptorReference(String ref, AssemblerConfigurationSource configSource) throws AssemblyReadException, InvalidAssemblerConfigurationException - Specified by:
getAssemblyForDescriptorReference
in interfaceAssemblyReader
- Throws:
AssemblyReadException
InvalidAssemblerConfigurationException
-
getAssemblyFromDescriptorFile
public Assembly getAssemblyFromDescriptorFile(File file, AssemblerConfigurationSource configSource) throws AssemblyReadException, InvalidAssemblerConfigurationException - Specified by:
getAssemblyFromDescriptorFile
in interfaceAssemblyReader
- Throws:
AssemblyReadException
InvalidAssemblerConfigurationException
-
readAssembly
public Assembly readAssembly(Reader reader, String locationDescription, File assemblyDir, AssemblerConfigurationSource configSource) throws AssemblyReadException, InvalidAssemblerConfigurationException -
mergeComponentsWithMainAssembly
protected void mergeComponentsWithMainAssembly(Assembly assembly, File assemblyDir, AssemblerConfigurationSource configSource, ComponentXpp3Reader.ContentTransformer transformer) throws AssemblyReadException Add the contents of all included components to main assembly- Parameters:
assembly
- the assemblyassemblyDir
- the assembly directorytransformer
- the component interpolator- Throws:
AssemblyReadException
-
mergeComponentWithAssembly
Add the content of a single Component to main assembly- Parameters:
component
- The componentassembly
- The assembly
-
includeSiteInAssembly
public void includeSiteInAssembly(Assembly assembly, AssemblerConfigurationSource configSource) throws InvalidAssemblerConfigurationException - Specified by:
includeSiteInAssembly
in interfaceAssemblyReader
- Throws:
InvalidAssemblerConfigurationException
-