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

@Named("file-aggregator") public class SimpleAggregatingDescriptorHandler extends Object implements ContainerDescriptorHandler
file-aggregator: Generic aggregating handler, configured with filePattern and outputPath.
  • 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
  • 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(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
    • getFilePattern

      public String getFilePattern()
    • setFilePattern

      public void setFilePattern(String filePattern)
    • getOutputPath

      public String getOutputPath()
    • setOutputPath

      public void setOutputPath(String outputPath)