@Singleton @Named public class DefaultAssemblyReader extends Object implements AssemblyReader
Constructor and Description |
---|
DefaultAssemblyReader() |
Modifier and Type | Method and Description |
---|---|
static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator |
createProjectInterpolator(org.apache.maven.project.MavenProject project) |
Assembly |
getAssemblyForDescriptorReference(String ref,
AssemblerConfigurationSource configSource) |
Assembly |
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 assembly
|
protected void |
mergeComponentWithAssembly(Component component,
Assembly assembly)
Add the content of a single Component to main assembly
|
List<Assembly> |
readAssemblies(AssemblerConfigurationSource configSource) |
Assembly |
readAssembly(Reader reader,
String locationDescription,
File assemblyDir,
AssemblerConfigurationSource configSource) |
public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator createProjectInterpolator(org.apache.maven.project.MavenProject project)
public List<Assembly> readAssemblies(AssemblerConfigurationSource configSource) throws AssemblyReadException, InvalidAssemblerConfigurationException
readAssemblies
in interface AssemblyReader
AssemblyReadException
InvalidAssemblerConfigurationException
public Assembly getAssemblyForDescriptorReference(String ref, AssemblerConfigurationSource configSource) throws AssemblyReadException, InvalidAssemblerConfigurationException
getAssemblyForDescriptorReference
in interface AssemblyReader
AssemblyReadException
InvalidAssemblerConfigurationException
public Assembly getAssemblyFromDescriptorFile(File file, AssemblerConfigurationSource configSource) throws AssemblyReadException, InvalidAssemblerConfigurationException
getAssemblyFromDescriptorFile
in interface AssemblyReader
AssemblyReadException
InvalidAssemblerConfigurationException
public Assembly readAssembly(Reader reader, String locationDescription, File assemblyDir, AssemblerConfigurationSource configSource) throws AssemblyReadException, InvalidAssemblerConfigurationException
protected void mergeComponentsWithMainAssembly(Assembly assembly, File assemblyDir, AssemblerConfigurationSource configSource, ComponentXpp3Reader.ContentTransformer transformer) throws AssemblyReadException
assembly
- the assemblyassemblyDir
- the assembly directorytransformer
- the component interpolatorAssemblyReadException
protected void mergeComponentWithAssembly(Component component, Assembly assembly)
component
- The componentassembly
- The assemblypublic void includeSiteInAssembly(Assembly assembly, AssemblerConfigurationSource configSource) throws InvalidAssemblerConfigurationException
includeSiteInAssembly
in interface AssemblyReader
InvalidAssemblerConfigurationException
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.