public abstract class AbstractFileHeaderMojo extends AbstractLicenseNameMojo
copyrightOwners, DEFAULT_EXCLUDES, DEFAULT_INCLUDES, DEFAULT_ROOTS, extraTemplateParameters, inceptionYear, organizationName, projectName| Constructor and Description |
|---|
AbstractFileHeaderMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
doAction()
Do plugin action.
|
void |
init()
Method to initialize the mojo before doing any concrete actions.
|
protected abstract boolean |
isDryRun() |
protected abstract boolean |
isFailOnMissingHeader() |
protected abstract boolean |
isFailOnNotUptodateHeader() |
getCopyrightOwners, getLicense, getLicense, getLicenseName, isKeepBackup, processLicenseContextacceptPackaging, addResourceDir, afterExecute, checkEncoding, checkPackaging, checkSkip, execute, getBuildTimestamp, getEncoding, getProject, getSession, hasClassPath, isSkip, isVerbose, rejectPackaging, setEncoding, setVerboseprotected abstract boolean isDryRun()
true if mojo must be a simple dry run (says do not modifiy any scanned files), false
otherise.protected abstract boolean isFailOnMissingHeader()
true if mojo should fails if dryRun and there is some missing license header, false
otherwise.protected abstract boolean isFailOnNotUptodateHeader()
true if mojo should fails if dryRun and there is some obsolete license header, false
otherwise.public void init()
throws Exception
AbstractLicenseNameMojoAbstractLicenseMojo.doAction() method.init in class AbstractLicenseNameMojoException - if anypublic void doAction()
throws Exception
AbstractLicenseMojoAbstractLicenseMojo.execute() invoke this method only and only if :
AbstractLicenseMojo.checkPackaging() returns true.AbstractLicenseMojo.init() returns true.doAction in class AbstractLicenseMojoException - if anyCopyright © 2010–2019 MojoHaus. All rights reserved.