T - public abstract class AbstractLinterMojo<T> extends AbstractSingleProcessorMojo
| Constructor and Description |
|---|
AbstractLinterMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addReport(ResourceLintReport<T> report)
Add a single report to the registry of found errors.
|
protected abstract ReportXmlFormatter |
createXmlFormatter(LintReport<T> lintReport,
ReportXmlFormatter.FormatterType type) |
protected ProgressIndicator |
getProgressIndicator() |
protected abstract File |
getReportFile() |
protected abstract String |
getReportFormat() |
protected boolean |
isFailAllowed() |
boolean |
isFailNever() |
protected void |
onAfterExecute()
Invoked right after execution completion.
|
protected void |
onBeforeExecute()
Invoked before execution is performed.
|
protected void |
onProcessingResource(Resource resource)
A method which should be invoked on each new resource processing, having as a side effect an increment of the
counter holding the number of total processed resources.
|
void |
setFailFast(boolean failFast) |
void |
setFailNever(boolean failNever) |
void |
setFailThreshold(int failThreshold) |
createResourceProcessor, decorateManagerFactory, doExecute, getOptionsexecute, extendPluginClasspath, getManagerFactory, getTargetGroupsAsList, getTaskExecutor, isIncrementalBuild, isIncrementalCheckRequired, isParallelProcessing, newWroManagerFactory, validateprotected final void addReport(ResourceLintReport<T> report)
report - to add.protected void onBeforeExecute()
onBeforeExecute in class AbstractWro4jMojoprotected void onAfterExecute()
onAfterExecute in class AbstractWro4jMojoprotected abstract ReportXmlFormatter createXmlFormatter(LintReport<T> lintReport, ReportXmlFormatter.FormatterType type)
ReportXmlFormatter responsible for generating lint report.protected final void onProcessingResource(Resource resource)
protected final boolean isFailAllowed()
protected abstract File getReportFile()
protected abstract String getReportFormat()
protected final ProgressIndicator getProgressIndicator()
public void setFailNever(boolean failNever)
setFailNever in class AbstractSingleProcessorMojofailNever - the failFast to set.public void setFailThreshold(int failThreshold)
public boolean isFailNever()
isFailNever in class AbstractSingleProcessorMojopublic void setFailFast(boolean failFast)
failFast - flag to set.Copyright © 2008-2014. All Rights Reserved.