java.lang.Object
com.github.blutorange.maven.plugin.closurecompiler.common.HtmlUpdater

public final class HtmlUpdater extends Object
Updates a given set of HTML files and sets the source of the configured script elements the generated files.
Since:
2.32.0
  • Constructor Details

    • HtmlUpdater

      public HtmlUpdater(MojoMetadata mojoMeta, HtmlUpdateConfig updateConfig)
      Creates a new update for a minify plugin.
      Parameters:
      mojoMeta - Mojo metadata with the Maven logger.
      updateConfig - Plugin-global configuration for the HTML update operation.
  • Method Details

    • process

      public void process(List<ProcessingResult> processingResults) throws org.apache.maven.plugin.MojoExecutionException
      Update all HTML files with the given generated files.
      Parameters:
      processingResults - Results of the minify plugin, with the generated script files.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - When the HTML files could not be updated.