Class AbstractSingleProcessorMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
ro.isdc.wro.maven.plugin.AbstractWro4jMojo
ro.isdc.wro.maven.plugin.AbstractSingleProcessorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractLinterMojo

public abstract class AbstractSingleProcessorMojo extends AbstractWro4jMojo
Maven plugin which use a single processor.
Author:
Alex Objelean, Paul Podgorsek
  • Constructor Details

    • AbstractSingleProcessorMojo

      public AbstractSingleProcessorMojo()
  • Method Details

    • doExecute

      public final void doExecute() throws Exception
      Description copied from class: AbstractWro4jMojo
      Perform actual plugin processing.
      Specified by:
      doExecute in class AbstractWro4jMojo
      Throws:
      Exception
    • wantProcessGroup

      protected boolean wantProcessGroup(String groupName, ResourceType resourceType)
      Allow subclasses to decide if a group needs to be processed. Useful for plugins which process only resources of a certain type (ex: jshint).
      Returns:
      true if the resource of a certain type from a group should be processed.
    • newWroManagerFactory

      protected final WroManagerFactory newWroManagerFactory() throws org.apache.maven.plugin.MojoExecutionException
      Initialize the manager factory with a processor factory using a single processor.
      Overrides:
      newWroManagerFactory in class AbstractWro4jMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • createResourceProcessor

      protected abstract ResourcePreProcessor createResourceProcessor()
      Factory method responsible for creating the processor which will be applied for this build.
    • getOptions

      protected String getOptions()
      Returns:
      raw representation of the option value.
    • setFailNever

      public void setFailNever(boolean failNever)
      Parameters:
      failNever - the failFast to set
    • isFailNever

      public boolean isFailNever()
      Returns:
      the failNever