Package com.spotify.fmt
Class FMT
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.spotify.fmt.AbstractFMT
com.spotify.fmt.FMT
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="format",
defaultPhase=PROCESS_SOURCES,
threadSafe=true)
public class FMT
extends AbstractFMT
FMT class.
- Version:
- $Id: $Id
- Author:
- guisim
-
Field Summary
Fields inherited from class com.spotify.fmt.AbstractFMT
useDefaultClasspathWhenForkingFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringProvides the name of the label used when a non-formatted file is found.protected booleanWhether to write reformatted files to disk.Methods inherited from class com.spotify.fmt.AbstractFMT
execute, getResult, postExecute, shouldForkMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
FMT
public FMT()
-
-
Method Details
-
shouldWriteReformattedFiles
protected boolean shouldWriteReformattedFiles()Description copied from class:AbstractFMTWhether to write reformatted files to disk.- Specified by:
shouldWriteReformattedFilesin classAbstractFMT
-
getProcessingLabel
Provides the name of the label used when a non-formatted file is found.- Specified by:
getProcessingLabelin classAbstractFMT- Returns:
- the label to use in the log
-