public abstract class AbstractLicenseMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected boolean |
aggregate
Wheter to treat multi-modules projects as only one project (true) or treat multi-module projects separately
(false, by default)
|
protected File |
basedir
The base directory, in which to search for files.
|
protected float |
concurrencyFactor
Maven license plugin uses concurrency to check license headers.
|
protected String |
encoding
Set the charcter encoding for files
|
protected String[] |
excludes
Specifies files, which are excluded in the check.
|
protected String |
header
The text document containing the license header to check or use for reformatting
|
protected String[] |
headerDefinitions
Allows the use of external header definitions files.
|
protected String[] |
includes
Specifies files, which are included in the check.
|
protected String[] |
keywords
Specify the list of keywords to use to detect a header.
|
protected Map<String,String> |
mapping
Set mapping between document mapping and a supported type to use
|
protected org.apache.maven.project.MavenProject |
project |
protected Map<String,String> |
properties
The properties to use when reading the header, to replace tokens
|
protected boolean |
quiet
Set this to "true" to cause no output
|
protected boolean |
skip
Whether to skip the plugin execution
|
protected boolean |
strictCheck
Set to true if you need a strict check against the headers.
|
protected boolean |
useDefaultExcludes
Whether to use the default excludes when scanning for files.
|
protected boolean |
useDefaultMapping
Whether to use the default mapping between fiel extensions and comments to use, or only the one your provide
|
protected String[] |
validHeaders
Specifies additional header files to use when checking for the presence of a valid header in your sources.
|
Constructor and Description |
---|
AbstractLicenseMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
debug(String format,
Object... params) |
protected void |
execute(Callback callback) |
protected void |
info(String format,
Object... params) |
protected String[] |
listSelectedFiles() |
protected Map<String,String> |
mergeProperties() |
protected void |
warn(String format,
Object... params) |
getLog, getPluginContext, setLog, setPluginContext
protected File basedir
protected String header
protected String[] validHeaders
protected String[] headerDefinitions
protected Map<String,String> properties
protected String[] includes
protected String[] excludes
protected String[] keywords
protected boolean useDefaultExcludes
protected boolean aggregate
protected Map<String,String> mapping
protected boolean useDefaultMapping
protected float concurrencyFactor
<nThreads> = <number of cores> * concurrencyFactor
protected boolean skip
protected boolean quiet
protected boolean strictCheck
protected String encoding
protected org.apache.maven.project.MavenProject project
protected final void execute(Callback callback) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected final String[] listSelectedFiles() throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureException
Copyright © 2008-2012 Mathieu Carbou. All Rights Reserved.