Class 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
    • Constructor Detail

      • AbstractSingleProcessorMojo

        public AbstractSingleProcessorMojo()
    • Method Detail

      • doExecute

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

        protected boolean wantProcessGroup​(java.lang.String groupName,
                                           ro.isdc.wro.model.resource.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 ro.isdc.wro.manager.factory.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 ro.isdc.wro.model.resource.processor.ResourcePreProcessor createResourceProcessor()
        Factory method responsible for creating the processor which will be applied for this build.
      • getOptions

        protected java.lang.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