public abstract class AbstractCopyrightMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
alternateTemplateFile
Alternate copyright template file.
|
protected java.io.File |
baseDirectory
Base directory for project.
|
protected java.lang.String |
bsdTemplateFile
Copyright BSD template file.
|
protected boolean |
debug
Turn on debugging.
|
protected boolean |
doHidden
Check hidden files too?
|
protected java.lang.String[] |
exclude
Exclude pattern list.
|
protected java.lang.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 java.util.ArrayList<org.apache.maven.model.Resource> |
resources
Resources.
|
protected java.lang.String |
scm
Select SCM system - svn (default), mercurial, git.
|
protected boolean |
scmOnly
Skip files not under SCM?
|
protected java.io.File |
sourceDirectory
Source directory.
|
protected java.lang.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 java.io.File |
getResourceFile(java.lang.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 java.lang.String excludeFile
This parameter is resolved as a resource, then a URL, then a file. This is a comma-separated list.
protected java.lang.String[] exclude
protected java.io.File baseDirectory
protected java.io.File sourceDirectory
protected java.util.ArrayList<org.apache.maven.model.Resource> resources
protected boolean mavenOnly
protected java.lang.String scm
protected boolean debug
protected boolean warn
protected boolean ignoreYear
protected boolean normalize
protected boolean useComma
protected boolean preserveCopyrights
protected boolean scmOnly
protected boolean doHidden
protected java.lang.String templateFile
protected java.lang.String alternateTemplateFile
protected java.lang.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.MojoExecutionExceptionprotected java.io.File getResourceFile(java.lang.String resource)
resource - The file for the resource manager to locateCopyright © 2018 GlassFish Community. All Rights Reserved.