Class CheckFormatMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.xml.AbstractXmlMojo
org.codehaus.mojo.xml.CheckFormatMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(defaultPhase=VALIDATE, name="check-format", threadSafe=true) public class CheckFormatMojo extends AbstractXmlMojo
An XML indentation check over a set of files.
Author:
Peter Palaga
  • Constructor Details

    • CheckFormatMojo

      @Inject public CheckFormatMojo(org.codehaus.plexus.resource.ResourceManager locator)
      Creates a new CheckFormatMojo instance.
  • Method Details

    • executeXmlMojo

      protected void executeXmlMojo() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Description copied from class: AbstractXmlMojo
      The equivalent of AbstractXmlMojo.execute() for any subclasses.
      Specified by:
      executeXmlMojo in class AbstractXmlMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if an unexpected problem occurs. Throwing this exception causes a "BUILD ERROR" message to be displayed.
      org.apache.maven.plugin.MojoFailureException - if an expected problem (such as a compilation failure) occurs. Throwing this exception causes a "BUILD FAILURE" message to be displayed.
    • setIndentSize

      public void setIndentSize(int indentSize)
      Sets the number of spaces for indentation.
      Parameters:
      indentSize - the number of spaces