|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.glassfish.copyright.AbstractCopyrightMojo
public abstract class AbstractCopyrightMojo
Check copyrights of files.
| Field Summary | |
|---|---|
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. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractCopyrightMojo()
|
|
| Method Summary | |
|---|---|
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. |
| 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 |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
execute |
| Field Detail |
|---|
protected 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
| Constructor Detail |
|---|
public AbstractCopyrightMojo()
| Method Detail |
|---|
protected void initializeOptions(Copyright c)
protected void check(Copyright c)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected File getResourceFile(String resource)
resource - The file for the resource manager to locate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||