Class CheckFileHeaderMojo

All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="check-file-header", threadSafe=true) public class CheckFileHeaderMojo extends AbstractFileHeaderMojo
The goal to check if the state of header on project source files.
Since:
1.2
Author:
tchemit dev@tchemit.fr
  • Constructor Details

    • CheckFileHeaderMojo

      public CheckFileHeaderMojo()
  • Method Details

    • isSkip

      public boolean isSkip()
      Description copied from class: AbstractLicenseMojo
      When is sets to true, will skip execution. This will take effect in at the very begin of the AbstractLicenseMojo.execute() before any initialisation of goal.
      Specified by:
      isSkip in class AbstractLicenseMojo
      Returns:
      true if goal will not be executed
    • isDryRun

      protected boolean isDryRun()
      Specified by:
      isDryRun in class AbstractFileHeaderMojo
      Returns:
      true if mojo must be a simple dry run (says do not modifiy any scanned files), false otherise.
    • isFailOnMissingHeader

      protected boolean isFailOnMissingHeader()
      Specified by:
      isFailOnMissingHeader in class AbstractFileHeaderMojo
      Returns:
      true if mojo should fails if dryRun and there is some missing license header, false otherwise.
    • isFailOnNotUptodateHeader

      protected boolean isFailOnNotUptodateHeader()
      Specified by:
      isFailOnNotUptodateHeader in class AbstractFileHeaderMojo
      Returns:
      true if mojo should fails if dryRun and there is some obsolete license header, false otherwise.