Package ro.isdc.wro.maven.plugin
Class JsLintMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- ro.isdc.wro.maven.plugin.AbstractWro4jMojo
-
- ro.isdc.wro.maven.plugin.AbstractSingleProcessorMojo
-
- ro.isdc.wro.maven.plugin.AbstractLinterMojo<ro.isdc.wro.extensions.processor.support.linter.LinterError>
-
- ro.isdc.wro.maven.plugin.JsLintMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
public class JsLintMojo extends AbstractLinterMojo<ro.isdc.wro.extensions.processor.support.linter.LinterError>
Maven plugin used to validate js scripts defined in wro model using jsLint.- Since:
- 1.4.2
- Author:
- Alex Objelean
-
-
Constructor Summary
Constructors Constructor Description JsLintMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ro.isdc.wro.model.resource.processor.ResourcePreProcessorcreateResourceProcessor()Factory method responsible for creating the processor which will be applied for this build.protected ro.isdc.wro.extensions.support.lint.ReportXmlFormattercreateXmlFormatter(ro.isdc.wro.extensions.support.lint.LintReport<ro.isdc.wro.extensions.processor.support.linter.LinterError> lintReport, ro.isdc.wro.extensions.support.lint.ReportXmlFormatter.FormatterType type)protected java.io.FilegetReportFile()protected java.lang.StringgetReportFormat()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.AbstractLinterMojo
addReport, getProgressIndicator, isFailAllowed, isFailNever, onAfterExecute, onBeforeExecute, onProcessingResource, setFailFast, setFailNever, setFailThreshold
-
Methods inherited from class ro.isdc.wro.maven.plugin.AbstractSingleProcessorMojo
doExecute, getOptions, newWroManagerFactory
-
Methods inherited from class ro.isdc.wro.maven.plugin.AbstractWro4jMojo
execute, extendPluginClasspath, getManagerFactory, getTargetGroupsAsList, getTaskExecutor, isIncrementalBuild, isIncrementalCheckRequired, isParallelProcessing, validate
-
-
-
-
Method Detail
-
createResourceProcessor
protected ro.isdc.wro.model.resource.processor.ResourcePreProcessor createResourceProcessor()
Description copied from class:AbstractSingleProcessorMojoFactory method responsible for creating the processor which will be applied for this build.- Specified by:
createResourceProcessorin classAbstractSingleProcessorMojo
-
wantProcessGroup
protected boolean wantProcessGroup(java.lang.String groupName, ro.isdc.wro.model.resource.ResourceType resourceType)Description copied from class:AbstractSingleProcessorMojoAllow subclasses to decide if a group needs to be processed. Useful for plugins which process only resources of a certain type (ex: jshint).- Overrides:
wantProcessGroupin classAbstractSingleProcessorMojo- Returns:
- true if the resource of a certain type from a group should be processed.
-
createXmlFormatter
protected ro.isdc.wro.extensions.support.lint.ReportXmlFormatter createXmlFormatter(ro.isdc.wro.extensions.support.lint.LintReport<ro.isdc.wro.extensions.processor.support.linter.LinterError> lintReport, ro.isdc.wro.extensions.support.lint.ReportXmlFormatter.FormatterType type)- Specified by:
createXmlFormatterin classAbstractLinterMojo<ro.isdc.wro.extensions.processor.support.linter.LinterError>- Returns:
- an instance of
ReportXmlFormatterresponsible for generating lint report.
-
getReportFile
protected java.io.File getReportFile()
- Specified by:
getReportFilein classAbstractLinterMojo<ro.isdc.wro.extensions.processor.support.linter.LinterError>- Returns:
- the file where the report should be written.
-
getReportFormat
protected java.lang.String getReportFormat()
- Specified by:
getReportFormatin classAbstractLinterMojo<ro.isdc.wro.extensions.processor.support.linter.LinterError>- Returns:
- the preferred format of the report.
-
-