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 1163853 2011-08-31 22:42:32Z jdcasey $
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
protected Assembly readAssembly(Reader reader,
String locationDescription,
File assemblyDir,
AssemblerConfigurationSource configSource)
throws AssemblyReadException,
InvalidAssemblerConfigurationException
- Throws:
AssemblyReadException
InvalidAssemblerConfigurationException
mergeComponentsWithMainAssembly
protected void mergeComponentsWithMainAssembly(Assembly assembly,
File assemblyDir,
AssemblerConfigurationSource configSource)
throws AssemblyReadException
- Add the contents of all included components to main assembly
- Parameters:
assembly
- assemblyDir
-
- Throws:
AssemblyReadException
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
mergeComponentWithAssembly
protected void mergeComponentWithAssembly(Component component,
Assembly assembly)
- Add the content of a single Component to main assembly
- Parameters:
component
- 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-2011 The Apache Software Foundation. All Rights Reserved.