ro.isdc.wro.maven.plugin
Class JsLintMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by ro.isdc.wro.maven.plugin.AbstractWro4jMojo
          extended by ro.isdc.wro.maven.plugin.AbstractSingleProcessorMojo
              extended by ro.isdc.wro.maven.plugin.AbstractLinterMojo<LinterError>
                  extended by ro.isdc.wro.maven.plugin.JsLintMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class JsLintMojo
extends AbstractLinterMojo<LinterError>

Maven plugin used to validate js scripts defined in wro model using jsLint.

Since:
1.4.2
Author:
Alex Objelean

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
JsLintMojo()
           
 
Method Summary
protected  ResourcePreProcessor createResourceProcessor()
          
protected  ReportXmlFormatter createXmlFormatter(LintReport<LinterError> lintReport, ReportXmlFormatter.FormatterType type)
          
protected  File getReportFile()
          
protected  String getReportFormat()
          
 
Methods inherited from class ro.isdc.wro.maven.plugin.AbstractLinterMojo
addReport, onAfterExecute, onBeforeExecute
 
Methods inherited from class ro.isdc.wro.maven.plugin.AbstractSingleProcessorMojo
doExecute, getManagerFactory, getOptions
 
Methods inherited from class ro.isdc.wro.maven.plugin.AbstractWro4jMojo
execute, extendPluginClasspath, getTargetGroupsAsList, isIncrementalBuild, newWroManagerFactory, validate
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsLintMojo

public JsLintMojo()
Method Detail

createResourceProcessor

protected ResourcePreProcessor createResourceProcessor()

Specified by:
createResourceProcessor in class AbstractSingleProcessorMojo

createXmlFormatter

protected ReportXmlFormatter createXmlFormatter(LintReport<LinterError> lintReport,
                                                ReportXmlFormatter.FormatterType type)

Specified by:
createXmlFormatter in class AbstractLinterMojo<LinterError>

getReportFile

protected File getReportFile()

Specified by:
getReportFile in class AbstractLinterMojo<LinterError>
Returns:
the file where the report should be written.

getReportFormat

protected String getReportFormat()

Specified by:
getReportFormat in class AbstractLinterMojo<LinterError>
Returns:
the preferred format of the report.


Copyright © 2008-2013. All Rights Reserved.