Class ApplyMojo

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

    @Mojo(name="apply",
          defaultPhase=PROCESS_SOURCES,
          threadSafe=true)
    public class ApplyMojo
    extends FormatMojo
    Applies source formatting to the codebase.
    Author:
    Phillip Webb
    • Constructor Detail

      • ApplyMojo

        public ApplyMojo()
    • Method Detail

      • execute

        protected void execute​(List<File> files,
                               Charset encoding,
                               String lineSeparator)
                        throws org.apache.maven.plugin.MojoExecutionException,
                               org.apache.maven.plugin.MojoFailureException
        Description copied from class: FormatMojo
        Perform the formatting build-process behavior this Mojo implements.
        Specified by:
        execute in class FormatMojo
        Parameters:
        files - the files to process
        encoding - the encoding
        lineSeparator - the line separator
        Throws:
        org.apache.maven.plugin.MojoExecutionException - on execution error
        org.apache.maven.plugin.MojoFailureException - on failure