Package com.diffplug.spotless.maven
Class AbstractSpotlessMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.diffplug.spotless.maven.AbstractSpotlessMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
SpotlessApplyMojo
,SpotlessCheckMojo
public abstract class AbstractSpotlessMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected org.sonatype.plexus.build.incremental.BuildContext
buildContext
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSpotlessMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
execute()
protected abstract void
process(java.lang.Iterable<java.io.File> files, Formatter formatter, UpToDateChecker upToDateChecker)
-
-
-
Method Detail
-
process
protected abstract void process(java.lang.Iterable<java.io.File> files, Formatter formatter, UpToDateChecker upToDateChecker) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-