Package lombok.maven
Class AbstractDelombokMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
lombok.maven.AbstractDelombokMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
DelombokMojo,TestDelombokMojo
public abstract class AbstractDelombokMojo
extends org.apache.maven.plugin.AbstractMojo
Abstract mojo to Delombok java source with lombok annotations.
- Author:
- Anthony Whitford
- See Also:
- Delombok
-
Field Summary
Fields Modifier and Type Field Description protected booleanaddOutputDirectoryAdd output directory flag.protected StringencodingEncoding.protected Map<String,String>formatPreferencesFormatting preferences.protected org.apache.maven.plugin.descriptor.PluginDescriptorpluginDescriptorprotected org.apache.maven.project.MavenProjectprojectThe Maven project to act upon.protected booleanskipSpecifies whether the delombok generation should be skipped.protected booleanverboseVerbose flag. -
Constructor Summary
Constructors Constructor Description AbstractDelombokMojo() -
Method Summary
Modifier and Type Method Description protected abstract voidaddSourceRoot(String path)voidexecute()protected abstract StringgetGoalDescription()protected abstract FilegetOutputDirectory()protected abstract FilegetSourceDirectory()protected abstract StringgetSourcePath()
-
Field Details
-
skip
@Parameter(property="lombok.delombok.skip", defaultValue="false", required=true) protected boolean skipSpecifies whether the delombok generation should be skipped. -
encoding
@Parameter(property="lombok.encoding", defaultValue="${project.build.sourceEncoding}", required=true) protected String encodingEncoding. -
verbose
@Parameter(property="lombok.verbose", defaultValue="false", required=true) protected boolean verboseVerbose flag. Print the name of each file as it is being delombok-ed. -
addOutputDirectory
@Parameter(property="lombok.addOutputDirectory", defaultValue="true", required=true) protected boolean addOutputDirectoryAdd output directory flag. Adds the output directory to the Maven build path. -
formatPreferences
Formatting preferences. -
project
@Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject projectThe Maven project to act upon. -
pluginDescriptor
@Parameter(property="plugin", required=true, readonly=true) protected org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor
-
-
Constructor Details
-
AbstractDelombokMojo
public AbstractDelombokMojo()
-
-
Method Details
-
getGoalDescription
-
getOutputDirectory
-
getSourceDirectory
-
getSourcePath
-
addSourceRoot
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-