Package org.codelibs.maven.yuicompressor
Class JSLintMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codelibs.maven.yuicompressor.MojoSupport
org.codelibs.maven.yuicompressor.JSLintMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="jslint",
defaultPhase=PROCESS_RESOURCES,
threadSafe=true)
public class JSLintMojo
extends MojoSupport
Check JavaScript files with JSLint.
- Author:
- David Bernard, CodeLibs Project
-
Field Summary
Fields inherited from class org.codelibs.maven.yuicompressor.MojoSupport
buildContext, failOnWarning, jsErrorReporter, jswarn, projectFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled after all processing is complete.voidCalled before processing starts.protected String[]Returns the default file includes pattern.protected voidprocessFile(SourceFile src) Processes a single file.Methods inherited from class org.codelibs.maven.yuicompressor.MojoSupport
executeMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
JSLintMojo
public JSLintMojo()
-
-
Method Details
-
getDefaultIncludes
Description copied from class:MojoSupportReturns the default file includes pattern.- Specified by:
getDefaultIncludesin classMojoSupport- Returns:
- array of include patterns
-
beforeProcess
Description copied from class:MojoSupportCalled before processing starts.- Specified by:
beforeProcessin classMojoSupport- Throws:
IOException- if an error occurs
-
afterProcess
public void afterProcess()Description copied from class:MojoSupportCalled after all processing is complete.- Specified by:
afterProcessin classMojoSupport
-
processFile
Description copied from class:MojoSupportProcesses a single file.- Specified by:
processFilein classMojoSupport- Parameters:
src- the source file to process- Throws:
IOException- if an error occurs
-