org.bsc.maven.plugin.processor
Class AbstractAnnotationProcessorMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
MainAnnotationProcessorMojo, TestAnnotationProcessorMojo

public abstract class AbstractAnnotationProcessorMojo
extends org.apache.maven.plugin.AbstractMojo

Author:
bsorrentino

Field Summary
protected  org.apache.maven.project.MavenProject project
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractAnnotationProcessorMojo()
           
 
Method Summary
protected abstract  void addCompileSourceRoot(org.apache.maven.project.MavenProject project, String dir)
           
 void execute()
           
protected abstract  Set<String> getClasspathElements(Set<String> result)
           
abstract  File getDefaultOutputDirectory()
           
protected abstract  File getOutputClassDirectory()
           
protected abstract  Set<File> getSourceDirectories(Set<File> result)
           
 
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

project

@Component
protected org.apache.maven.project.MavenProject project
Constructor Detail

AbstractAnnotationProcessorMojo

public AbstractAnnotationProcessorMojo()
Method Detail

getSourceDirectories

protected abstract Set<File> getSourceDirectories(Set<File> result)
Returns:
supported source directories

getOutputClassDirectory

protected abstract File getOutputClassDirectory()
Returns:
output folder

addCompileSourceRoot

protected abstract void addCompileSourceRoot(org.apache.maven.project.MavenProject project,
                                             String dir)
Parameters:
project -
dir -

getDefaultOutputDirectory

public abstract File getDefaultOutputDirectory()
Returns:

getClasspathElements

protected abstract Set<String> getClasspathElements(Set<String> result)

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2009-2013. All Rights Reserved.