| Constructor and Description |
|---|
AbstractFMT() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
execute.
|
List<String> |
getFilesProcessed()
Getter for the field
filesProcessed. |
protected abstract String |
getProcessingLabel()
Provides the name of the label used when a non-formatted file is found.
|
protected void |
logNumberOfFilesProcessed() |
protected abstract void |
onNonComplyingFile(File file,
String formatted)
Hook called when the processd file is not compliant with the formatter.
|
protected void |
postExecute(List<String> filesProcessed,
int nonComplyingFiles)
Post Execute action.
|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - if any.org.apache.maven.plugin.MojoFailureExceptionprotected void postExecute(List<String> filesProcessed, int nonComplyingFiles) throws org.apache.maven.plugin.MojoFailureException
filesProcessed - the list of processed files by the formatternonComplyingFiles - the number of files that are not compliantorg.apache.maven.plugin.MojoFailureException - if there is an exceptionpublic List<String> getFilesProcessed()
filesProcessed.List object.protected void logNumberOfFilesProcessed()
protected abstract void onNonComplyingFile(File file, String formatted) throws IOException
file - the file that is not compliantformatted - the corresponding formatted of the file.IOExceptionprotected abstract String getProcessingLabel()
Copyright © 2017. All rights reserved.