Class Aggregation

java.lang.Object
org.codelibs.maven.yuicompressor.Aggregation

public class Aggregation extends Object
Handles aggregation (concatenation) of multiple files into a single output file. Supports file inclusion/exclusion patterns, file headers, and automatic cleanup.
  • Field Details

    • inputDir

      public File inputDir
    • output

      public File output
    • includes

      public String[] includes
    • excludes

      public String[] excludes
    • removeIncluded

      public boolean removeIncluded
    • insertNewLine

      public boolean insertNewLine
    • insertFileHeader

      public boolean insertFileHeader
    • fixLastSemicolon

      public boolean fixLastSemicolon
    • autoExcludeWildcards

      public boolean autoExcludeWildcards
  • Constructor Details

    • Aggregation

      public Aggregation()
  • Method Details

    • run

      public List<File> run(Collection<File> previouslyIncludedFiles, org.sonatype.plexus.build.incremental.BuildContext buildContext) throws IOException
      Runs the aggregation process.
      Parameters:
      previouslyIncludedFiles - files to exclude if autoExcludeWildcards is enabled
      buildContext - build context for output stream creation
      Returns:
      list of files that were aggregated
      Throws:
      IOException - if file operations fail
    • run

      public List<File> run(Collection<File> previouslyIncludedFiles, org.sonatype.plexus.build.incremental.BuildContext buildContext, Set<String> incrementalFiles) throws IOException
      Runs the aggregation process with incremental build support.
      Parameters:
      previouslyIncludedFiles - files to exclude if autoExcludeWildcards is enabled
      buildContext - build context for output stream creation
      incrementalFiles - set of modified files in incremental build
      Returns:
      list of files that were aggregated
      Throws:
      IOException - if file operations fail