public abstract class AbstractLicenseNameMojo extends AbstractLicenseMojo
licenseName and owns a
licenseStore.| Modifier and Type | Field and Description |
|---|---|
protected String |
copyrightOwners
optional copyright owners.
|
protected static String[] |
DEFAULT_EXCLUDES |
protected static String[] |
DEFAULT_INCLUDES |
protected static String[] |
DEFAULT_ROOTS |
protected Map<String,String> |
extraTemplateParameters
optional extra templates parameters.
|
protected Integer |
inceptionYear
Inception year of the project.
|
protected String |
organizationName
Name of project's organization.
|
protected String |
projectName
Name of project (or module).
|
| Constructor and Description |
|---|
AbstractLicenseNameMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getCopyrightOwners() |
protected License |
getLicense() |
protected License |
getLicense(String licenseName,
boolean checkIfExists) |
protected String |
getLicenseName() |
protected void |
init()
Method to initialize the mojo before doing any concrete actions.
|
protected boolean |
isKeepBackup() |
protected String |
processLicenseContext(String licenseContent) |
acceptPackaging, addResourceDir, afterExecute, checkEncoding, checkPackaging, checkSkip, doAction, execute, getBuildTimestamp, getEncoding, getProject, getSession, hasClassPath, isSkip, isVerbose, rejectPackaging, setEncoding, setVerboseprotected static final String[] DEFAULT_INCLUDES
protected static final String[] DEFAULT_EXCLUDES
protected static final String[] DEFAULT_ROOTS
@Parameter(property="license.projectName",
defaultValue="${project.name}",
required=true)
protected String projectName
Will be used as description section of new header.
@Parameter(property="license.organizationName",
defaultValue="${project.organization.name}",
required=true)
protected String organizationName
Will be used as copyrigth's holder in new header.
@Parameter(property="license.inceptionYear",
defaultValue="${project.inceptionYear}",
required=true)
protected Integer inceptionYear
Will be used as first year of copyright section in new header.
@Parameter(property="license.copyrightOwners") protected String copyrightOwners
If not set, organizationName parameter will be used instead.
protected void init()
throws Exception
AbstractLicenseMojo.doAction() method.init in class AbstractLicenseMojoException - if anyprotected boolean isKeepBackup()
protected String getLicenseName()
protected License getLicense()
protected String getCopyrightOwners()
protected String processLicenseContext(String licenseContent) throws IOException
IOExceptionCopyright © 2010–2019 MojoHaus. All rights reserved.