public abstract class MojoSupport
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected org.sonatype.plexus.build.incremental.BuildContext |
buildContext |
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 java.lang.String[] |
getDefaultIncludes() |
protected void |
processDir(java.io.File srcRoot,
java.io.File destRoot,
java.util.List<java.lang.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 org.sonatype.plexus.build.incremental.BuildContext buildContext
protected ErrorReporter4Mojo jsErrorReporter_
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected abstract java.lang.String[] getDefaultIncludes() throws java.lang.Exception
java.lang.Exception
protected abstract void beforeProcess() throws java.lang.Exception
java.lang.Exception
protected abstract void afterProcess() throws java.lang.Exception
java.lang.Exception
protected void processDir(java.io.File srcRoot, java.io.File destRoot, java.util.List<java.lang.String> srcExcludes, boolean destAsSource) throws java.lang.Exception
java.lang.Exception
https://github.com/davidB/yuicompressor-maven-plugin/issues/19
protected abstract void processFile(SourceFile src) throws java.lang.Exception
java.lang.Exception
Copyright © 2012-2014. All Rights Reserved.