public abstract class AbstractCopyrightMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
alternateTemplateFile
Alternate copyright template file.
|
protected List<String> |
alternateTemplateFiles
Alternate copyright template files.
|
protected File |
baseDirectory
Base directory for project.
|
protected String |
bsdTemplateFile
Copyright BSD template file.
|
protected boolean |
debug
Turn on debugging.
|
protected boolean |
doHidden
Check hidden files too?
|
protected String[] |
exclude
Exclude pattern list.
|
protected String |
excludeFile
File(s) containing exclude patterns.
|
protected boolean |
ignoreYear
Don't check that the year is correct?
|
protected org.apache.maven.plugin.logging.Log |
log
Log output, initialize this in the execute method.
|
protected boolean |
mavenOnly
Check all files in project or just the source and resource
files maven knows about?
|
protected boolean |
normalize
Normalize format of repaired copyright to match template?
|
protected boolean |
preserveCopyrights
Set to true to preserve original copyright entries.
|
protected List<org.apache.maven.model.Resource> |
resources
Resources.
|
protected String |
scm
Select SCM system - git (default), mercurial, svn.
|
protected boolean |
scmOnly
Skip files not under SCM?
|
protected File |
sourceDirectory
Source directory.
|
protected String |
templateFile
Copyright template file.
|
protected boolean |
useDash
Use dash instead of comma between years?
|
protected boolean |
warn
Turn off warnings.
|
| Constructor and Description |
|---|
AbstractCopyrightMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
check(Copyright c)
Run the copyright checker using the specified options
on the specified files in this project.
|
protected File |
getResourceFile(String resource)
Get the File reference for a File passed in as a string reference.
|
protected void |
initializeOptions(Copyright c)
Initialize the Copyright object with the options from this mojo.
|
getLog, getPluginContext, setLog, setPluginContext@Parameter(property="copyright.exclude") protected String excludeFile
This parameter is resolved as a resource, then a URL, then a file. This is a comma-separated list.
@Parameter protected String[] exclude
@Parameter(defaultValue="${project.basedir}")
protected File baseDirectory
protected File sourceDirectory
@Parameter(defaultValue="${project.resources}")
protected List<org.apache.maven.model.Resource> resources
@Parameter(property="copyright.mavenonly") protected boolean mavenOnly
@Parameter(property="copyright.scm") protected String scm
@Parameter(property="copyright.debug") protected boolean debug
@Parameter(property="copyright.warn",
defaultValue="true")
protected boolean warn
@Parameter(property="copyright.ignoreyear") protected boolean ignoreYear
@Parameter(property="copyright.normalize") protected boolean normalize
@Parameter(property="copyright.usedash") protected boolean useDash
@Parameter(property="copyright.preservecopyrights") protected boolean preserveCopyrights
@Parameter(property="copyright.scmonly") protected boolean scmOnly
protected boolean doHidden
@Parameter(property="copyright.template") protected String templateFile
@Parameter(property="copyright.alternatetemplate") protected String alternateTemplateFile
@Parameter(property="copyright.alternatetemplates") protected List<String> alternateTemplateFiles
@Parameter(property="copyright.bsdtemplate") protected String bsdTemplateFile
protected org.apache.maven.plugin.logging.Log log
protected void initializeOptions(Copyright c)
protected void check(Copyright c) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2017–2020 Eclipse Foundation. All rights reserved.