com.google.code.mojo.license
Class LicenseCheckMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.google.code.mojo.license.AbstractLicenseMojo
          extended by com.google.code.mojo.license.LicenseCheckMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public final class LicenseCheckMojo
extends AbstractLicenseMojo

Check if the source files of the project have a valid license header

Author:
Mathieu Carbou (mathieu.carbou@gmail.com)

Field Summary
protected  boolean failIfMissing
          Whether to fail the build if some file miss license header
 
Fields inherited from class com.google.code.mojo.license.AbstractLicenseMojo
aggregate, basedir, encoding, excludes, header, headerDefinitions, includes, keywords, mapping, project, properties, quiet, skip, useDefaultExcludes, useDefaultMapping
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
LicenseCheckMojo()
           
 
Method Summary
 void execute()
           
 
Methods inherited from class com.google.code.mojo.license.AbstractLicenseMojo
debug, execute, info, mergeProperties, selectedDocuments, warn
 
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

failIfMissing

protected boolean failIfMissing
Whether to fail the build if some file miss license header

Constructor Detail

LicenseCheckMojo

public LicenseCheckMojo()
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


Copyright © 2008-2011 Mathieu Carbou. All Rights Reserved.