org.universAAL.support.directives.api
Class AbstractCheckMojo

Package class diagram package AbstractCheckMojo
java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by 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

Field Summary
protected  APICheck check
           
protected  boolean failed
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractCheckMojo()
           
 
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
 

Field Detail

failed

protected boolean failed

check

protected APICheck check
Constructor Detail

AbstractCheckMojo

public AbstractCheckMojo()
Method Detail

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.