org.apache.maven.plugin.assembly.io
Class DefaultAssemblyReader

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.plugin.assembly.io.DefaultAssemblyReader
All Implemented Interfaces:
AssemblyReader, LogEnabled

public class DefaultAssemblyReader
extends AbstractLogEnabled
implements AssemblyReader

Version:
$Id: DefaultAssemblyReader.java 1005618 2010-10-07 20:43:22Z jdcasey $
Plexus component:
role:
"org.apache.maven.plugin.assembly.io.AssemblyReader"

Constructor Summary
DefaultAssemblyReader()
           
 
Method Summary
 Assembly getAssemblyForDescriptorReference(String ref, AssemblerConfigurationSource configSource)
           
 Assembly getAssemblyFromDescriptorFile(File file, AssemblerConfigurationSource configSource)
           
protected  Logger getLogger()
           
 void includeSiteInAssembly(Assembly assembly, AssemblerConfigurationSource configSource)
           
protected  void mergeComponentsWithMainAssembly(Assembly assembly, File assemblyDir, AssemblerConfigurationSource configSource)
          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)
           
protected  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
 

Constructor Detail

DefaultAssemblyReader

public DefaultAssemblyReader()
Method Detail

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 Logger getLogger()
Overrides:
getLogger in class AbstractLogEnabled


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.