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
public abstract class AbstractSingleProcessorMojo extends AbstractWro4jMojo
Maven plugin which use a single processor.- Author:
- Alex Objelean
-
-
Constructor Summary
Constructors Constructor Description AbstractSingleProcessorMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ro.isdc.wro.model.resource.processor.ResourcePreProcessorcreateResourceProcessor()Factory method responsible for creating the processor which will be applied for this build.voiddoExecute()Perform actual plugin processing.protected java.lang.StringgetOptions()booleanisFailNever()protected ro.isdc.wro.manager.factory.WroManagerFactorynewWroManagerFactory()Initialize the manager factory with a processor factory using a single processor.voidsetFailNever(boolean failNever)protected booleanwantProcessGroup(java.lang.String groupName, ro.isdc.wro.model.resource.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, validate
-
-
-
-
Method Detail
-
doExecute
public final void doExecute() throws java.lang.ExceptionDescription copied from class:AbstractWro4jMojoPerform actual plugin processing.- Specified by:
doExecutein classAbstractWro4jMojo- 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.MojoExecutionExceptionInitialize the manager factory with a processor factory using a single processor.- Overrides:
newWroManagerFactoryin classAbstractWro4jMojo- 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
-
-