org.apache.maven.plugin.assembly.io
Class DefaultAssemblyReader
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.plugin.assembly.io.DefaultAssemblyReader
- All Implemented Interfaces:
- AssemblyReader, org.codehaus.plexus.logging.LogEnabled
@Component(role=AssemblyReader.class)
public class DefaultAssemblyReader
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements AssemblyReader
- Version:
- $Id: DefaultAssemblyReader.java 1644916 2014-12-12 14:57:54Z krosenvold $
Method Summary |
static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator |
createProjectInterpolator(MavenProject project)
|
Assembly |
getAssemblyForDescriptorReference(String ref,
AssemblerConfigurationSource configSource)
|
Assembly |
getAssemblyFromDescriptorFile(File file,
AssemblerConfigurationSource configSource)
|
protected org.codehaus.plexus.logging.Logger |
getLogger()
|
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)
|
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAssemblyReader
public DefaultAssemblyReader()
readAssemblies
public List<Assembly> readAssemblies(AssemblerConfigurationSource configSource)
throws AssemblyReadException,
InvalidAssemblerConfigurationException
- Specified by:
readAssemblies
in interface AssemblyReader
- Throws:
AssemblyReadException
InvalidAssemblerConfigurationException
getAssemblyForDescriptorReference
public Assembly getAssemblyForDescriptorReference(String ref,
AssemblerConfigurationSource configSource)
throws AssemblyReadException,
InvalidAssemblerConfigurationException
- Specified by:
getAssemblyForDescriptorReference
in interface AssemblyReader
- Throws:
AssemblyReadException
InvalidAssemblerConfigurationException
getAssemblyFromDescriptorFile
public Assembly getAssemblyFromDescriptorFile(File file,
AssemblerConfigurationSource configSource)
throws AssemblyReadException,
InvalidAssemblerConfigurationException
- Specified by:
getAssemblyFromDescriptorFile
in interface AssemblyReader
- Throws:
AssemblyReadException
InvalidAssemblerConfigurationException
readAssembly
public Assembly readAssembly(Reader reader,
String locationDescription,
File assemblyDir,
AssemblerConfigurationSource configSource)
throws AssemblyReadException,
InvalidAssemblerConfigurationException
- Throws:
AssemblyReadException
InvalidAssemblerConfigurationException
createProjectInterpolator
public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator createProjectInterpolator(MavenProject project)
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
protected void mergeComponentWithAssembly(Component component,
Assembly assembly)
- 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 interface AssemblyReader
- Throws:
InvalidAssemblerConfigurationException
getLogger
protected org.codehaus.plexus.logging.Logger getLogger()
- Overrides:
getLogger
in class org.codehaus.plexus.logging.AbstractLogEnabled
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.