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
-
-
Constructor Summary
Constructors Constructor Description AbstractQuliceMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
contextualize(org.codehaus.plexus.context.Context ctx)
protected abstract void
doExecute()
Do the real execution.protected com.qulice.maven.MavenEnvironment
env()
Get the environment.void
execute()
org.apache.maven.execution.MavenSession
session()
Current maven session.void
setAsserts(Collection<String> asser)
Set asserts option.void
setEncoding(String encoding)
Set source code encoding.void
setExcludes(Collection<String> exprs)
Set excludes.void
setLicense(String lcs)
Set license address.void
setProject(org.apache.maven.project.MavenProject proj)
Set Maven Project (used mostly for unit testing).void
setSkip(boolean skp)
Set skip option (mostly for unit testing).
-
-
-
Method Detail
-
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
public final void setAsserts(Collection<String> asser)
Set asserts option.- Parameters:
asser
- Asserts to use.
-
setLicense
public final void setLicense(String lcs)
Set license address.- Parameters:
lcs
- The "license" option
-
setExcludes
public final void setExcludes(Collection<String> exprs)
Set excludes.- Parameters:
exprs
- Expressions
-
setEncoding
public void setEncoding(String encoding)
Set source code encoding.- Parameters:
encoding
- Source code encoding
-
contextualize
public final void contextualize(org.codehaus.plexus.context.Context ctx)
- Specified by:
contextualize
in interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
-
execute
public final void execute() throws org.apache.maven.plugin.MojoFailureException
- Specified by:
execute
in 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.MojoFailureException
Do 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
-
-