public abstract class MojoSupport
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
failOnWarning
define if plugin must stop/fail on warnings.
|
protected ErrorReporter4Mojo |
jsErrorReporter_ |
protected boolean |
jswarn
[js only] Display possible errors in the code
|
protected org.apache.maven.project.MavenProject |
project |
| Constructor and Description |
|---|
MojoSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
afterProcess() |
protected abstract void |
beforeProcess() |
void |
execute() |
protected abstract String[] |
getDefaultIncludes() |
protected void |
processDir(File srcRoot,
File destRoot,
List<String> srcExcludes,
boolean destAsSource)
Force to use defaultIncludes (ignore srcIncludes) to avoid processing resources/includes from other type than *.css or *.js
|
protected abstract void |
processFile(SourceFile src) |
protected org.apache.maven.project.MavenProject project
protected boolean jswarn
protected boolean failOnWarning
protected ErrorReporter4Mojo jsErrorReporter_
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected abstract String[] getDefaultIncludes() throws Exception
Exceptionprotected void processDir(File srcRoot, File destRoot, List<String> srcExcludes, boolean destAsSource) throws Exception
Exceptionhttps://github.com/davidB/yuicompressor-maven-plugin/issues/19protected abstract void processFile(SourceFile src) throws Exception
ExceptionCopyright © 2012–2014. All rights reserved.