ro.isdc.wro.maven.plugin
Class JsHintMojo

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.JsHintMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class JsHintMojo
extends AbstractLinterMojo<LinterError>

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

Since:
1.3.5
Author:
Alex Objelean

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
JsHintMojo()
           
 
Method Summary
protected  ResourcePreProcessor createResourceProcessor()
          
protected  ReportXmlFormatter createXmlFormatter(LintReport<LinterError> lintReport, ReportXmlFormatter.FormatterType type)
          
protected  File getReportFile()
          
protected  String getReportFormat()
          
protected  void onAfterExecute()
          Invoked right after execution completion.
protected  void onBeforeExecute()
          Invoked before execution is performed.
 
Methods inherited from class ro.isdc.wro.maven.plugin.AbstractLinterMojo
addReport
 
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

JsHintMojo

public JsHintMojo()
Method Detail

createResourceProcessor

protected ResourcePreProcessor createResourceProcessor()

Specified by:
createResourceProcessor in class AbstractSingleProcessorMojo

onBeforeExecute

protected void onBeforeExecute()
Invoked before execution is performed.

Overrides:
onBeforeExecute in class AbstractLinterMojo<LinterError>

onAfterExecute

protected void onAfterExecute()
Invoked right after execution completion. This method is invoked also if the execution failed with an exception.

Overrides:
onAfterExecute in class AbstractLinterMojo<LinterError>

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.