org.joda.beans.maven
Class JodaBeansValidateMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.joda.beans.maven.AbstractJodaBeansMojo
          extended by org.joda.beans.maven.JodaBeansValidateMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class JodaBeansValidateMojo
extends AbstractJodaBeansMojo

Maven plugin for validating that the generated Joda-Beans are up to date.


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
JodaBeansValidateMojo()
           
 
Method Summary
protected  List<String> buildArgs()
          Builds the arguments to the tool.
protected  int runTool(Class<?> toolClass, List<String> argsList)
          Runs the tool.
 
Methods inherited from class org.joda.beans.maven.AbstractJodaBeansMojo
execute, getSourceDir, obtainClassLoader, obtainClasspath
 
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
 

Constructor Detail

JodaBeansValidateMojo

public JodaBeansValidateMojo()
Method Detail

buildArgs

protected List<String> buildArgs()
Description copied from class: AbstractJodaBeansMojo
Builds the arguments to the tool.

Overrides:
buildArgs in class AbstractJodaBeansMojo
Returns:
the arguments, not null

runTool

protected int runTool(Class<?> toolClass,
                      List<String> argsList)
               throws org.apache.maven.plugin.MojoExecutionException,
                      org.apache.maven.plugin.MojoFailureException
Description copied from class: AbstractJodaBeansMojo
Runs the tool.

Overrides:
runTool in class AbstractJodaBeansMojo
Parameters:
toolClass - the tool class, not null
argsList - the argument flags, not null
Returns:
the number of changes
Throws:
org.apache.maven.plugin.MojoExecutionException - if an error occurs
org.apache.maven.plugin.MojoFailureException - if a failure occurs


Copyright © 2013 Joda.org. All rights reserved.