Package io.spring.format.maven
Class ApplyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.spring.format.maven.FormatMojo
io.spring.format.maven.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
-
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
-
ApplyMojo
public ApplyMojo()
-
-
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
-