Package net.alchim31.maven.yuicompressor
Class JSLintMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.alchim31.maven.yuicompressor.MojoSupport
net.alchim31.maven.yuicompressor.JSLintMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="jslint",
defaultPhase=PROCESS_RESOURCES,
requiresProject=true,
threadSafe=true)
public class JSLintMojo
extends MojoSupport
Check JS files with jslint.
-
Field Summary
Fields inherited from class net.alchim31.maven.yuicompressor.MojoSupport
buildContext, failOnWarning, jsErrorReporter, jswarn, project
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
After process.void
Before process.protected String[]
Gets the default includes.protected void
processFile
(SourceFile src) Process file.Methods inherited from class net.alchim31.maven.yuicompressor.MojoSupport
execute
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
JSLintMojo
public JSLintMojo()
-
-
Method Details
-
getDefaultIncludes
Description copied from class:MojoSupport
Gets the default includes.- Specified by:
getDefaultIncludes
in classMojoSupport
- Returns:
- the default includes
-
beforeProcess
Description copied from class:MojoSupport
Before process.- Specified by:
beforeProcess
in classMojoSupport
- Throws:
IOException
- the IO exception
-
afterProcess
public void afterProcess()Description copied from class:MojoSupport
After process.- Specified by:
afterProcess
in classMojoSupport
-
processFile
Description copied from class:MojoSupport
Process file.- Specified by:
processFile
in classMojoSupport
- Parameters:
src
- the src- Throws:
IOException
- the IO exception
-