@Mojo(name="update-file-header",
requiresProject=true)
public class UpdateFileHeaderMojo
extends AbstractFileHeaderMojo
update-header goal which can not deal with
Copyright.
This goal use a specific project file descriptor project.xml to
describe all files to update for a whole project.AbstractFileHeaderMojo.FileState| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dryRun
A flag to test plugin but modify no file.
|
protected boolean |
failOnMissingHeader
A flag to fail the build if
dryRun flag is on and some files with
no header are detected. |
protected boolean |
failOnNotUptodateHeader
A flag to fail the build if
dryRun flag is on and some files with headers
to update. |
protected boolean |
skipUpdateLicense
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 |
|---|
UpdateFileHeaderMojo() |
| 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
dryRun flag is on and some files with
no header are detected.
Note: If dryRun flag is not set, there is no effect.@Parameter(property="license.failOnNotUptodateHeader",
defaultValue="false")
protected boolean failOnNotUptodateHeader
dryRun flag is on and some files with headers
to update.
Note: If dryRun flag is not set, there is no effect.@Parameter(property="license.skipUpdateLicense",
defaultValue="false")
protected boolean skipUpdateLicense
@Parameter(property="dryRun",
defaultValue="false")
protected boolean dryRun
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.