Package ro.isdc.wro.maven.plugin
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
Maven plugin which use a single processor.
- Author:
- Alex Objelean, Paul Podgorsek
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ResourcePreProcessorFactory method responsible for creating the processor which will be applied for this build.final voidPerform actual plugin processing.protected Stringbooleanprotected final WroManagerFactoryInitialize the manager factory with a processor factory using a single processor.voidsetFailNever(boolean failNever) protected booleanwantProcessGroup(String groupName, ResourceType resourceType) Allow subclasses to decide if a group needs to be processed.Methods inherited from class ro.isdc.wro.maven.plugin.AbstractWro4jMojo
execute, extendPluginClasspath, getManagerFactory, getTargetGroupsAsList, getTaskExecutor, isIncrementalBuild, isIncrementalCheckRequired, isParallelProcessing, onAfterExecute, onBeforeExecute, validateMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractSingleProcessorMojo
public AbstractSingleProcessorMojo()
-
-
Method Details
-
doExecute
Description copied from class:AbstractWro4jMojoPerform actual plugin processing.- Specified by:
doExecutein classAbstractWro4jMojo- Throws:
Exception
-
wantProcessGroup
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.MojoExecutionExceptionInitialize the manager factory with a processor factory using a single processor.- Overrides:
newWroManagerFactoryin classAbstractWro4jMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
createResourceProcessor
Factory method responsible for creating the processor which will be applied for this build. -
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
-