@Mojo(name="check-file-header",
requiresProject=true)
public class CheckFileHeaderMojo
extends AbstractFileHeaderMojo
AbstractFileHeaderMojo.FileState| Modifier and Type | Field and Description |
|---|---|
protected boolean |
failOnMissingHeader
A flag to fail the build if there is some files with no header are detected.
|
protected boolean |
failOnNotUptodateHeader
A flag to fail the build if there is some files with headers to update.
|
protected boolean |
skipCheckLicense
A flag to skip the goal.
|
addJavaLicenseAfterPackage, addSvnKeyWords, canUpdateCopyright, canUpdateDescription, canUpdateLicense, clearAfterOperation, DEFAULT_EXCLUDES, DEFAULT_INCLUDES, DEFAULT_ROOTS, descriptionTemplate, excludes, extraExtensions, ignoreTag, includes, processEndTag, processStartTag, roots, sectionDelimitercopyrightOwners, extraTemplateParameters, inceptionYear, organizationName, projectName| Constructor and Description |
|---|
CheckFileHeaderMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isDryRun() |
protected boolean |
isFailOnMissingHeader() |
protected boolean |
isFailOnNotUptodateHeader() |
boolean |
isSkip()
When is sets to
true, will skip execution. |
buildDefaultFileHeader, checkResults, cleanHeaderConfiguration, clear, doAction, finalize, finalizeFile, getFileHeader, getFiles, getFilesToTreateForRoots, getTransformer, getTransformer, init, obtainFilesToProcessByCommentStyle, processCommentStyle, processFile, processFile, reportType, updateFileHeaderDescriptiongetCopyright, getCopyrightOwners, getLicense, getLicense, getLicenseName, isKeepBackup, processLicenseContextacceptPackaging, addResourceDir, afterExecute, checkEncoding, checkPackaging, checkSkip, execute, getBuildTimestamp, getEncoding, getProject, getSession, hasClassPath, isVerbose, rejectPackaging, setEncoding, setVerbosegetLog, getPluginContext, setLog, setPluginContextclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLog@Parameter(property="license.failOnMissingHeader",
defaultValue="false")
protected boolean failOnMissingHeader
@Parameter(property="license.failOnNotUptodateHeader",
defaultValue="false")
protected boolean failOnNotUptodateHeader
@Parameter(property="license.skipCheckLicense",
defaultValue="false")
protected boolean skipCheckLicense
public boolean isSkip()
true, will skip execution.
This will take effect in at the very begin of the AbstractLicenseMojo.execute()
before any initialisation of goal.isSkip in class AbstractLicenseMojotrue if goal will not be executedprotected boolean isDryRun()
isDryRun in class AbstractFileHeaderMojotrue if mojo must be a simple dry run (says do not modifiy any scanned files),
false otherise.protected boolean isFailOnMissingHeader()
isFailOnMissingHeader in class AbstractFileHeaderMojotrue if mojo should fails if dryRun and there is some missing license header, false otherwise.protected boolean isFailOnNotUptodateHeader()
isFailOnNotUptodateHeader in class AbstractFileHeaderMojotrue if mojo should fails if dryRun and there is some obsolete license header, false otherwise.Copyright © 2010–2014 Codehaus. All rights reserved.