org.codehaus.mojo.clirr
Class ClirrArbitraryCheckMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.clirr.AbstractClirrMojo
          extended by org.codehaus.mojo.clirr.ClirrArbitraryCheckMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class ClirrArbitraryCheckMojo
extends AbstractClirrMojo

Check for compatibility between two arbitrary artifact sets.

Author:
Brett Porter, Jesse McConnell
Is bound to the specified phase of the standard build lifecycle:
verify
Is defined to be executed in:
phase:
compile
Is defined by the goal name:
check-arbitrary

Field Summary
protected  ArtifactSpecification[] newComparisonArtifacts
          List of artifacts to compare to baseline.
protected  ArtifactSpecification[] oldComparisonArtifacts
          List of artifacts to serve as a baseline to compare against.
 
Fields inherited from class org.codehaus.mojo.clirr.AbstractClirrMojo
classesDirectory, comparisonArtifacts, comparisonVersion, excludes, factory, includes, localRepository, logResults, minSeverity, project, resolver, skip, textOutputFile, xmlOutputFile
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ClirrArbitraryCheckMojo()
           
 
Method Summary
protected  void doExecute()
           
protected  ClirrDiffListener executeClirr(net.sf.clirr.core.Severity minSeverity)
           
protected  net.sf.clirr.core.spi.JavaType[] resolveClasses(ArtifactSpecification[] artifacts, net.sf.clirr.core.ClassFilter classFilter)
           
 
Methods inherited from class org.codehaus.mojo.clirr.AbstractClirrMojo
canGenerate, convertSeverity, createClassLoader, createClassSet, execute, executeClirr, getTransitiveDependencies, resolveArtifacts
 
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

oldComparisonArtifacts

protected ArtifactSpecification[] oldComparisonArtifacts
List of artifacts to serve as a baseline to compare against.

Is defined by:
Is required.

newComparisonArtifacts

protected ArtifactSpecification[] newComparisonArtifacts
List of artifacts to compare to baseline.

Is defined by:
Is required.
Constructor Detail

ClirrArbitraryCheckMojo

public ClirrArbitraryCheckMojo()
Method Detail

doExecute

protected void doExecute()
                  throws MojoExecutionException,
                         MojoFailureException
Specified by:
doExecute in class AbstractClirrMojo
Throws:
MojoExecutionException
MojoFailureException

resolveClasses

protected net.sf.clirr.core.spi.JavaType[] resolveClasses(ArtifactSpecification[] artifacts,
                                                          net.sf.clirr.core.ClassFilter classFilter)
                                                   throws MojoFailureException,
                                                          MojoExecutionException
Throws:
MojoFailureException
MojoExecutionException

executeClirr

protected ClirrDiffListener executeClirr(net.sf.clirr.core.Severity minSeverity)
                                  throws MojoExecutionException,
                                         MojoFailureException
Overrides:
executeClirr in class AbstractClirrMojo
Throws:
MojoExecutionException
MojoFailureException


Copyright © 2006-2012 Codehaus. All Rights Reserved.