Package lombok.maven
Class AbstractDelombokMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- lombok.maven.AbstractDelombokMojo
-
- All Implemented Interfaces:
ContextEnabled
,Mojo
- Direct Known Subclasses:
DelombokMojo
,TestDelombokMojo
public abstract class AbstractDelombokMojo extends 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 boolean
addOutputDirectory
Add output directory flag.protected String
encoding
Encoding.protected Map<String,String>
formatPreferences
Formatting preferences.protected PluginDescriptor
pluginDescriptor
protected MavenProject
project
The Maven project to act upon.protected boolean
skip
Specifies whether the delombok generation should be skipped.protected boolean
verbose
Verbose flag.
-
Constructor Summary
Constructors Constructor Description AbstractDelombokMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
addSourceRoot(String path)
void
execute()
protected abstract String
getGoalDescription()
protected abstract File
getOutputDirectory()
protected abstract File
getSourceDirectory()
protected abstract String
getSourcePath()
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
skip
@Parameter(property="lombok.delombok.skip", defaultValue="false", required=true) protected boolean skip
Specifies whether the delombok generation should be skipped.
-
encoding
@Parameter(property="lombok.encoding", defaultValue="${project.build.sourceEncoding}", required=true) protected String encoding
Encoding.
-
verbose
@Parameter(property="lombok.verbose", defaultValue="false", required=true) protected boolean verbose
Verbose flag. Print the name of each file as it is being delombok-ed.
-
addOutputDirectory
@Parameter(property="lombok.addOutputDirectory", defaultValue="true", required=true) protected boolean addOutputDirectory
Add output directory flag. Adds the output directory to the Maven build path.
-
formatPreferences
@Parameter protected Map<String,String> formatPreferences
Formatting preferences.
-
project
@Parameter(property="project", required=true, readonly=true) protected MavenProject project
The Maven project to act upon.
-
pluginDescriptor
@Parameter(property="plugin", required=true, readonly=true) protected PluginDescriptor pluginDescriptor
-
-
Constructor Detail
-
AbstractDelombokMojo
public AbstractDelombokMojo()
-
-
Method Detail
-
getGoalDescription
protected abstract String getGoalDescription()
-
getOutputDirectory
protected abstract File getOutputDirectory()
-
getSourceDirectory
protected abstract File getSourceDirectory()
-
getSourcePath
protected abstract String getSourcePath()
-
addSourceRoot
protected abstract void addSourceRoot(String path)
-
execute
public void execute() throws MojoExecutionException
- Throws:
MojoExecutionException
-
-