public class CopyrightrPluginExtension
extends java.lang.Object
| Constructor and Description |
|---|
CopyrightrPluginExtension() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCopyrightHolder()
Get the copyright holder (defaults to an empty string "")
|
boolean |
getDryRun()
Return whether this operation is a dry run - i.e.
|
java.util.List<java.lang.String> |
getExcludes()
Return the list of exclusion patterns
|
boolean |
getFailOnMissing()
Get whether to fail on missing copyright information
|
java.util.List<java.lang.String> |
getIncludes()
Get the list of inclusion patterns
|
boolean |
getOnlyReplaceFirst()
Get whether we should only replace the first found instance in a file,
(default true)
|
java.lang.String |
getYearSeparator()
Get the separator for year ranges (default ' - '), e.g.
|
void |
setCopyrightHolder(java.lang.String copyrightHolder)
Set the copyright holder - which will be appended to the regex string to
give greater control over the regex to only look for the copyright line
that ends with the name of the copyright holder.
|
void |
setDryRun(boolean dryRun)
Set whether this operation should be a dry run - i.e.
|
void |
setExcludes(java.util.List<java.lang.String> excludes)
Set the list of exclusion patterns
|
void |
setFailOnMissing(boolean failOnMissing)
Set whether to fail the build on missing copyright notification
|
void |
setIncludes(java.util.List<java.lang.String> includes)
Set the list of inclusion patterns
|
void |
setOnlyReplaceFirst(boolean onlyReplaceFirst)
Set whether we should only replace the first found instance in a file
|
void |
setYearSeparator(java.lang.String yearSeparator)
Set the separator for year ranges (default ' - '), e.g.
|
public java.util.List<java.lang.String> getExcludes()
public void setExcludes(java.util.List<java.lang.String> excludes)
excludes - the list of exclusion patternspublic java.util.List<java.lang.String> getIncludes()
public void setIncludes(java.util.List<java.lang.String> includes)
includes - the list of inclusion patternspublic boolean getDryRun()
public void setDryRun(boolean dryRun)
dryRun - whether this operation is a dry run operationpublic boolean getOnlyReplaceFirst()
public void setOnlyReplaceFirst(boolean onlyReplaceFirst)
onlyReplaceFirst - whether we should only replace the first found
instancepublic java.lang.String getCopyrightHolder()
public void setCopyrightHolder(java.lang.String copyrightHolder)
copyrightHolder - the copyright holder to setpublic java.lang.String getYearSeparator()
public void setYearSeparator(java.lang.String yearSeparator)
yearSeparator - the separator to place between yearspublic void setFailOnMissing(boolean failOnMissing)
failOnMissing - whether to fail the build on missing copyright
informationpublic boolean getFailOnMissing()