org.universAAL.support.directives.api
Class AbstractCheckMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.universAAL.support.directives.api.AbstractCheckMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- AbstractFixableCheckMojo, DecoupleCheckMojo, MainMethodCheckMojo, NamingCheckMojo
public abstract class AbstractCheckMojo
- extends org.apache.maven.plugin.AbstractMojo
Abstract Mojo that performs a APICheck
.
- Author:
- amedrano
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
void |
execute()
|
abstract APICheck |
getCheck()
|
protected org.apache.maven.project.MavenProject |
getProject()
|
static boolean |
isSnapshot(org.apache.maven.project.MavenProject mp)
Check whether the project is at snapshot version |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
failed
protected boolean failed
check
protected APICheck check
AbstractCheckMojo
public AbstractCheckMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
-
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
getProject
protected org.apache.maven.project.MavenProject getProject()
getCheck
public abstract APICheck getCheck()
isSnapshot
public static boolean isSnapshot(org.apache.maven.project.MavenProject mp)
- Check whether the project is at snapshot version
- Parameters:
mp
- The MavenProject
descriptor
- Returns:
- True if the version contains SNAPSHOT
Copyright © 2014 universAAL Consortium. All Rights Reserved.