Class SimpleAggregatingDescriptorHandler

java.lang.Object
org.apache.maven.plugins.assembly.filter.SimpleAggregatingDescriptorHandler
All Implemented Interfaces:
ContainerDescriptorHandler, org.codehaus.plexus.archiver.ArchiveFinalizer, org.codehaus.plexus.components.io.fileselectors.FileSelector, org.codehaus.plexus.logging.LogEnabled

@Component(role=ContainerDescriptorHandler.class, hint="file-aggregator", instantiationStrategy="per-lookup") public class SimpleAggregatingDescriptorHandler extends Object implements ContainerDescriptorHandler, org.codehaus.plexus.logging.LogEnabled
  • Field Details

    • commentChars

      private final String commentChars
      See Also:
    • aggregateWriter

      private final StringWriter aggregateWriter
    • filenames

      private final List<String> filenames
    • filePattern

      private String filePattern
    • outputPath

      private String outputPath
    • overrideFilterAction

      private boolean overrideFilterAction
    • logger

      private org.codehaus.plexus.logging.Logger logger
  • Constructor Details

    • SimpleAggregatingDescriptorHandler

      public SimpleAggregatingDescriptorHandler()
  • Method Details

    • finalizeArchiveCreation

      public void finalizeArchiveCreation(org.codehaus.plexus.archiver.Archiver archiver)
      Specified by:
      finalizeArchiveCreation in interface org.codehaus.plexus.archiver.ArchiveFinalizer
    • writePropertiesFile

      private File writePropertiesFile()
    • getWriter

      private Writer getWriter(File f) throws FileNotFoundException
      Throws:
      FileNotFoundException
    • finalizeArchiveExtraction

      public void finalizeArchiveExtraction(org.codehaus.plexus.archiver.UnArchiver unarchiver)
      Specified by:
      finalizeArchiveExtraction in interface org.codehaus.plexus.archiver.ArchiveFinalizer
    • getVirtualFiles

      public List<String> getVirtualFiles()
      Specified by:
      getVirtualFiles in interface org.codehaus.plexus.archiver.ArchiveFinalizer
    • isSelected

      public boolean isSelected(@Nonnull org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo) throws IOException
      Specified by:
      isSelected in interface org.codehaus.plexus.components.io.fileselectors.FileSelector
      Throws:
      IOException
    • checkConfig

      private void checkConfig()
    • readProperties

      private void readProperties(org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo) throws IOException
      Throws:
      IOException
    • getLogger

      protected final org.codehaus.plexus.logging.Logger getLogger()
    • enableLogging

      public void enableLogging(org.codehaus.plexus.logging.Logger logger)
      Specified by:
      enableLogging in interface org.codehaus.plexus.logging.LogEnabled
    • getFilePattern

      public String getFilePattern()
    • setFilePattern

      public void setFilePattern(String filePattern)
    • getOutputPath

      public String getOutputPath()
    • setOutputPath

      public void setOutputPath(String outputPath)