Class 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 java.lang.Object
    implements ContainerDescriptorHandler, org.codehaus.plexus.logging.LogEnabled
    • 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
      • logger

        private org.codehaus.plexus.logging.Logger logger
    • 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()
      • 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​(@Nonnull
                                  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
      • 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 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)