public abstract class AbstractCopyrightMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
alternateTemplateFile
Alternate copyright template file.
|
protected File |
baseDirectory
Base directory for project.
|
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 ArrayList<org.apache.maven.model.Resource> |
resources
Resources.
|
protected String |
scm
Select SCM system - svn (default), mercurial, git.
|
protected boolean |
scmOnly
Skip files not under SCM?
|
protected File |
sourceDirectory
Source directory.
|
protected String |
templateFile
Copyright template file.
|
protected boolean |
useComma
Use comma instead of dash 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, setPluginContextprotected String excludeFile
This parameter is resolved as a resource, then a URL, then a file. This is a comma-separated list.
protected String[] exclude
protected File baseDirectory
protected File sourceDirectory
protected ArrayList<org.apache.maven.model.Resource> resources
protected boolean mavenOnly
protected String scm
protected boolean debug
protected boolean warn
protected boolean ignoreYear
protected boolean normalize
protected boolean useComma
protected boolean scmOnly
protected boolean doHidden
protected String templateFile
protected String alternateTemplateFile
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 GlassFish Community. All Rights Reserved.