lombok.maven
Class AbstractDelombokMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by 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
protected  String encoding
          Encoding.
protected  List<org.apache.maven.artifact.Artifact> pluginArtifacts
          The plugin dependencies.
protected  org.apache.maven.project.MavenProject project
          The Maven project to act upon.
protected  boolean skip
          Specifies whether the delombok generation should be skipped.
protected  boolean verbose
          Verbose flag.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractDelombokMojo()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

skip

protected boolean skip
Specifies whether the delombok generation should be skipped.


encoding

protected String encoding
Encoding.


verbose

protected boolean verbose
Verbose flag. Print the name of each file as it is being delombok-ed.


project

protected org.apache.maven.project.MavenProject project
The Maven project to act upon.


pluginArtifacts

protected List<org.apache.maven.artifact.Artifact> pluginArtifacts
The plugin dependencies.

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 org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2010-2012 Anthony Whitford. All Rights Reserved.