public abstract class AbstractAnalyzeAnnotationProcessingMojo extends AbstractTentackleAnnotationProcessingMojo
Processes up all annotations annotated with @Analyze, such as @Service.
Processing results are either written to files in analyzeDir or placed on heap
for being picked up by wurblets, depending on the handler implementation for
each annotation.
| Modifier and Type | Field and Description |
|---|---|
protected String |
index
Optional generated index holding the generated services.
Example: <index>META-INF/RESOURCE-INDEX.LIST</index> |
encoding, processors, showCompileOutputcharset, filesets, mavenProject, resourceDirs, verbosity, verbosityLevel| Constructor and Description |
|---|
AbstractAnalyzeAnnotationProcessingMojo()
Creates a mojo.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanupProcessors(File srcDir)
Cleans up the processors.
|
protected void |
createMissingDirs()
Creates any missing directories.
|
protected String[] |
filterFileNames(String dirName,
String[] fileNames)
Filters the files to be processed.
If overridden, allows to skip the annotation processing. |
void |
finishExecute()
Finishes the execution.
|
protected void |
initializeProcessor(AbstractTentackleProcessor processor,
File srcDir)
Initializes a processor.
|
void |
setMojoParameters(File sourceDir,
File analyzeDir,
File servicesDir,
List<String> classpathElements)
Sets the mojo parameters.
|
protected void |
validate()
Checks the configuration.
|
addProcessor, execute, getCompileErrorLog, getProcessingClassloader, getTotalCompileErrors, getTotalErrors, initializeProcessors, prepareExecute, setMojoParametersdetermineEncoding, determineVerbosity, findResourceDirs, getCanonicalPath, getPathRelativeToBasedir, getResourceDirName@Parameter protected String index
public AbstractAnalyzeAnnotationProcessingMojo()
public void setMojoParameters(File sourceDir, File analyzeDir, File servicesDir, List<String> classpathElements) throws org.apache.maven.plugin.MojoFailureException
sourceDir - the directory holding the sources to be processedanalyzeDir - the directory holding the analyze resultsservicesDir - the directory holding the generated servicesclasspathElements - the mavenProject classpathorg.apache.maven.plugin.MojoFailureException - if classloader could not be createdprotected void validate()
throws org.apache.maven.plugin.MojoExecutionException
AbstractTentackleMojovalidate in class AbstractTentackleAnnotationProcessingMojoorg.apache.maven.plugin.MojoExecutionException - if validation failedprotected void createMissingDirs()
createMissingDirs in class AbstractTentackleAnnotationProcessingMojoprotected void initializeProcessor(AbstractTentackleProcessor processor, File srcDir) throws org.apache.maven.plugin.MojoFailureException
AbstractTentackleAnnotationProcessingMojoinitializeProcessor in class AbstractTentackleAnnotationProcessingMojoprocessor - the annotation processorsrcDir - the source dirorg.apache.maven.plugin.MojoFailureException - if initialization failedprotected void cleanupProcessors(File srcDir) throws org.apache.maven.plugin.MojoFailureException
AbstractTentackleAnnotationProcessingMojocleanupProcessors in class AbstractTentackleAnnotationProcessingMojosrcDir - the current file set directoryorg.apache.maven.plugin.MojoFailureException - if cleanup failedprotected String[] filterFileNames(String dirName, String[] fileNames)
AbstractTentackleAnnotationProcessingMojofilterFileNames in class AbstractTentackleAnnotationProcessingMojodirName - the base directoryfileNames - the file names relative to the directorypublic void finishExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
AbstractTentackleAnnotationProcessingMojofinishExecute in class AbstractTentackleAnnotationProcessingMojoorg.apache.maven.plugin.MojoExecutionException - if an unexpected problem occurs.org.apache.maven.plugin.MojoFailureException - if an expected problem occurs.Tentackle - distributed, domain- and model-driven