@Mojo(defaultPhase=VALIDATE,
name="check-format",
threadSafe=true)
public class CheckFormatMojo
extends AbstractXmlMojo
AbstractXmlMojo.CatalogHandling| Constructor | Description |
|---|---|
CheckFormatMojo() |
Creates a new
CheckFormatMojo instance. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
execute() |
Called by Maven for executing the Mojo.
|
void |
setIndentSize(int indentSize) |
Sets the number of spaces for indentation.
|
getLog, getPluginContext, setLog, setPluginContextactivateProxy, asAbsoluteFile, asFiles, getBasedir, getCatalogHandling, getExcludes, getFileNames, getFiles, getLocator, getProject, getResolver, getResource, isSkipping, passivateProxy, setCatalogspublic CheckFormatMojo()
CheckFormatMojo instance.public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - Running the Mojo failed.org.apache.maven.plugin.MojoFailureException - A configuration error was detected.public void setIndentSize(int indentSize)
indentSize - the number of spacesCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.