public abstract class FormatMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.project.MavenProject |
project
The Maven Project Object.
|
| Constructor and Description |
|---|
FormatMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected abstract void |
execute(List<File> files,
Charset encoding)
Perform the formatting build-process behavior this
Mojo implements. |
@Parameter(defaultValue="${project}",
readonly=true,
required=true)
protected org.apache.maven.project.MavenProject project
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected abstract void execute(List<File> files, Charset encoding) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
Mojo implements.files - the files to processencoding - the encodingorg.apache.maven.plugin.MojoExecutionException - on execution errororg.apache.maven.plugin.MojoFailureException - on failureCopyright © 2020. All rights reserved.