Package com.qulice.maven
Class AbstractQuliceMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.qulice.maven.AbstractQuliceMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Direct Known Subclasses:
CheckMojo
public abstract class AbstractQuliceMojo
extends org.apache.maven.plugin.AbstractMojo
implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Abstract mojo.
- Since:
- 0.3
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcontextualize(org.codehaus.plexus.context.Context ctx) protected abstract voidDo the real execution.protected final com.qulice.maven.MavenEnvironmentenv()Get the environment.final voidexecute()final org.apache.maven.execution.MavenSessionsession()Current maven session.final voidsetAsserts(Collection<String> val) Set asserts option.voidsetEncoding(String encoding) Set source code encoding.final voidsetExcludes(Collection<String> exprs) Set excludes.final voidsetProject(org.apache.maven.project.MavenProject proj) Set Maven Project (used mostly for unit testing).final voidsetSkip(boolean skp) Set skip option (mostly for unit testing).Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractQuliceMojo
public AbstractQuliceMojo()
-
-
Method Details
-
setProject
public final void setProject(org.apache.maven.project.MavenProject proj) Set Maven Project (used mostly for unit testing).- Parameters:
proj- The project to set
-
setSkip
public final void setSkip(boolean skp) Set skip option (mostly for unit testing).- Parameters:
skp- The "skip" option
-
setAsserts
Set asserts option.- Parameters:
val- Asserts to use.
-
setExcludes
Set excludes.- Parameters:
exprs- Expressions
-
setEncoding
Set source code encoding.- Parameters:
encoding- Source code encoding
-
contextualize
public final void contextualize(org.codehaus.plexus.context.Context ctx) - Specified by:
contextualizein interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
-
execute
public final void execute() throws org.apache.maven.plugin.MojoFailureException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Throws:
org.apache.maven.plugin.MojoFailureException
-
session
public final org.apache.maven.execution.MavenSession session()Current maven session.- Returns:
- Current maven session
-
doExecute
protected abstract void doExecute() throws org.apache.maven.plugin.MojoFailureExceptionDo the real execution.- Throws:
org.apache.maven.plugin.MojoFailureException- If some failure inside- Suppressed Checkstyle violations:
- NonStaticMethod (2 lines)
-
env
protected final com.qulice.maven.MavenEnvironment env()Get the environment.- Returns:
- The environment
-