Class SimpleAggregatingDescriptorHandler

  • All Implemented Interfaces:
    ContainerDescriptorHandler, org.codehaus.plexus.archiver.ArchiveFinalizer, org.codehaus.plexus.components.io.fileselectors.FileSelector

    @Named("file-aggregator")
    public class SimpleAggregatingDescriptorHandler
    extends java.lang.Object
    implements ContainerDescriptorHandler
    file-aggregator: Generic aggregating handler, configured with filePattern and outputPath.
    • Field Detail

      • aggregateWriter

        private final java.io.StringWriter aggregateWriter
      • filenames

        private final java.util.List<java.lang.String> filenames
      • filePattern

        private java.lang.String filePattern
      • outputPath

        private java.lang.String outputPath
      • overrideFilterAction

        private boolean overrideFilterAction
    • Constructor Detail

      • SimpleAggregatingDescriptorHandler

        public SimpleAggregatingDescriptorHandler()
    • Method Detail

      • finalizeArchiveCreation

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

        private java.io.File writePropertiesFile()
      • getWriter

        private java.io.Writer getWriter​(java.io.File f)
                                  throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
      • finalizeArchiveExtraction

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

        public java.util.List<java.lang.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 java.io.IOException
        Specified by:
        isSelected in interface org.codehaus.plexus.components.io.fileselectors.FileSelector
        Throws:
        java.io.IOException
      • checkConfig

        private void checkConfig()
      • readProperties

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

        public java.lang.String getFilePattern()
      • setFilePattern

        public void setFilePattern​(java.lang.String filePattern)
      • getOutputPath

        public java.lang.String getOutputPath()
      • setOutputPath

        public void setOutputPath​(java.lang.String outputPath)