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 FormatMojoValidates that source formatting matches the required style.- Author:
- Phillip Webb
-
-
Field Summary
-
Fields inherited from class io.spring.format.maven.FormatMojo
project
-
-
Constructor Summary
Constructors Constructor Description ValidateMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecute(List<File> files, Charset encoding, String lineSeparator)Perform the formatting build-process behavior thisMojoimplements.-
Methods inherited from class io.spring.format.maven.FormatMojo
execute, getFormatter
-
-
-
-
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: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
-
-