@Mojo(name="update-copyright",
defaultPhase=VALIDATE)
public class UpdateCopyrightMojo
extends CopyrightAbstractMojo
Copyright sections must respect the following format:
(.)* //This line references 0..N lines.
[COMMMENT_CHAR][lineBeforeCopyrightRegExp]
[COMMMENT_CHAR]* //This line references 0..N commented empty lines.
([COMMMENT_CHAR][oldCopyrightToken])*
([COMMMENT_CHAR] [YEAR] [copyrightEndToken])?
Formatter details:
If no ForgeRock copyrighted line is detected, the plugin will add according to the following format
[COMMMENT_CHAR][lineBeforeCopyrightRegExp]
[COMMMENT_CHAR]* //This line references 0..N commented empty lines.
([COMMMENT_CHAR][oldCopyrightToken])*
[indent][newPortionsCopyrightLabel] [YEAR] [forgerockCopyrightLabel]
[COMMMENT_CHAR][lineBeforeCopyrightRegExp]
[COMMMENT_CHAR]*{nbLinesToSkip} //This line nbLinesToSkip commented empty lines.
[indent][newCopyrightLabel] [YEAR] [forgerockCopyrightLabel]
CHECKED_EXTENSIONS| Constructor and Description |
|---|
UpdateCopyrightMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Updates copyright of modified files.
|
public UpdateCopyrightMojo()
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureException - if anyorg.apache.maven.plugin.MojoExecutionException - if anyCopyright © 2011-2015 ForgeRock AS. All Rights Reserved.