Package io.spring.format.maven
Class ValidateMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.spring.format.maven.FormatMojo
io.spring.format.maven.ValidateMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="validate",
defaultPhase=VALIDATE,
threadSafe=true)
public class ValidateMojo
extends FormatMojo
Validates that source formatting matches the required style.
- Author:
- Phillip Webb
-
Field Summary
Fields inherited from class io.spring.format.maven.FormatMojo
project, sessionFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.spring.format.maven.FormatMojo
execute, getFormatter, skipGloballyMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
ValidateMojo
public ValidateMojo()
-
-
Method Details
-
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:FormatMojoPerform the formatting build-process behavior thisMojoimplements.- Specified by:
executein classFormatMojo- Parameters:
files- the files to processencoding- the encodinglineSeparator- the line separator- Throws:
org.apache.maven.plugin.MojoExecutionException- on execution errororg.apache.maven.plugin.MojoFailureException- on failure
-