Package org.tentackle.maven.plugin
Class AnalyzeTestAnnotationProcessingMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.tentackle.maven.AbstractTentackleMojo
-
- org.tentackle.maven.AbstractTentackleAnnotationProcessingMojo
-
- org.tentackle.maven.plugin.AbstractAnalyzeAnnotationProcessingMojo
-
- org.tentackle.maven.plugin.AnalyzeTestAnnotationProcessingMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="test-analyze", defaultPhase=GENERATE_TEST_SOURCES, requiresDependencyResolution=TEST) public class AnalyzeTestAnnotationProcessingMojo extends AbstractAnalyzeAnnotationProcessingMojoGenerates code and meta-information prior to wurbeling and compiling the test sources.Processes all annotations annotated with
@Analyze, such as@Service.
Processing results are either written to files inanalyzeDiror placed on heap for being picked up by wurblets, depending on the handler implementation for each annotation.- Author:
- harald
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.FileanalyzeDirDirectory analyze results.protected java.util.List<java.lang.String>classpathElementsProject classpath.protected java.io.FileservicesDirDirectory generated services.protected java.io.FilesourceDirDirectory holding the sources to be processed.
Defaults to all java test sources of the current project.-
Fields inherited from class org.tentackle.maven.plugin.AbstractAnalyzeAnnotationProcessingMojo
index
-
Fields inherited from class org.tentackle.maven.AbstractTentackleAnnotationProcessingMojo
compilerArgs, compilerArgument, encoding, filesets, processors, showCompileOutput
-
-
Constructor Summary
Constructors Constructor Description AnalyzeTestAnnotationProcessingMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprepareExecute()-
Methods inherited from class org.tentackle.maven.plugin.AbstractAnalyzeAnnotationProcessingMojo
cleanupProcessors, createMissingDirs, filterFileNames, finishExecute, initializeProcessor, setMojoParameters, validate
-
Methods inherited from class org.tentackle.maven.AbstractTentackleAnnotationProcessingMojo
addProcessor, executeImpl, getCompileErrorLog, getProcessingClassloader, getTotalCompileErrors, getTotalErrors, initializeProcessors, setMojoParameters
-
Methods inherited from class org.tentackle.maven.AbstractTentackleMojo
determineEncoding, determineJavaToolVersion, determineVerbosity, execute, findResourceDirs, getCanonicalPath, getMajorVersion, getMavenProject, getMavenSession, getMojoExecution, getPathRelativeToBasedir, getResourceDirName, getSettings, getSettingsDecrypter, getToolchain, getToolchain, getToolchain, getToolchainManager, getToolFinder, isExecutionRecursive, isSkippedByDefault, loadResourceFileIntoString
-
-
-
-
Field Detail
-
sourceDir
@Parameter(defaultValue="${project.build.testSourceDirectory}", property="wurbel.testSourceDir", required=true) protected java.io.File sourceDirDirectory holding the sources to be processed.
Defaults to all java test sources of the current project. If this is not desired, filesets must be used.
-
classpathElements
@Parameter(defaultValue="${project.testClasspathElements}", readonly=true, required=true) protected java.util.List<java.lang.String> classpathElementsProject classpath.
-
analyzeDir
@Parameter(defaultValue="${project.build.directory}/test-analyze", property="wurbel.testAnalyzeDir", required=true) protected java.io.File analyzeDirDirectory analyze results.
-
servicesDir
@Parameter(defaultValue="${project.build.directory}/generated-test-resources/services", property="tentackle.testServiceDir", required=true) protected java.io.File servicesDirDirectory generated services.
-
-