Package org.codehaus.mojo.license
Class CheckFileHeaderMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.license.AbstractLicenseMojo
org.codehaus.mojo.license.AbstractLicenseNameMojo
org.codehaus.mojo.license.AbstractFileHeaderMojo
org.codehaus.mojo.license.CheckFileHeaderMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="check-file-header",
threadSafe=true)
public class CheckFileHeaderMojo
extends AbstractFileHeaderMojo
The goal to check if the state of header on project source files.
- Since:
- 1.2
- Author:
- tchemit dev@tchemit.fr
-
Field Summary
Fields inherited from class org.codehaus.mojo.license.AbstractLicenseNameMojo
copyrightOwners, copyrightStringFormat, DEFAULT_EXCLUDES, DEFAULT_INCLUDES, DEFAULT_ROOTS, extraTemplateParameters, ignoreLastDate, inceptionYear, organizationName, projectName
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codehaus.mojo.license.AbstractFileHeaderMojo
doAction, init
Methods inherited from class org.codehaus.mojo.license.AbstractLicenseNameMojo
getCopyrightOwners, getLicense, getLicense, getLicenseName, isKeepBackup, processLicenseContext
Methods inherited from class org.codehaus.mojo.license.AbstractLicenseMojo
acceptPackaging, addResourceDir, afterExecute, checkEncoding, checkPackaging, execute, getEncoding, getProject, hasClassPath, isVerbose, rejectPackaging, setEncoding, setVerbose, shouldSkip
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
CheckFileHeaderMojo
-
-
Method Details
-
isSkip
public boolean isSkip()Description copied from class:AbstractLicenseMojo
When is sets totrue
, will skip execution. This will take effect in at the very begin of theAbstractLicenseMojo.execute()
before any initialisation of goal.- Specified by:
isSkip
in classAbstractLicenseMojo
- Returns:
true
if goal will not be executed
-
isDryRun
protected boolean isDryRun()- Specified by:
isDryRun
in classAbstractFileHeaderMojo
- Returns:
true
if mojo must be a simple dry run (says do not modifiy any scanned files),false
otherise.
-
isFailOnMissingHeader
protected boolean isFailOnMissingHeader()- Specified by:
isFailOnMissingHeader
in classAbstractFileHeaderMojo
- Returns:
true
if mojo should fails if dryRun and there is some missing license header,false
otherwise.
-
isFailOnNotUptodateHeader
protected boolean isFailOnNotUptodateHeader()- Specified by:
isFailOnNotUptodateHeader
in classAbstractFileHeaderMojo
- Returns:
true
if mojo should fails if dryRun and there is some obsolete license header,false
otherwise.
-