Class LicenseRemoveMojo

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

    public final class LicenseRemoveMojo
    extends AbstractLicenseMojo
    Remove the specified header from source files
    • Field Detail

      • dryRun

        protected boolean dryRun
        Wheter to treat multi-modules projects as only one project (true) or treat multi-module projects separately (false, by default)
    • Constructor Detail

      • LicenseRemoveMojo

        public LicenseRemoveMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • remove

        private void remove​(Document document)