Package org.apache.maven.plugin.compiler
Class TestCompilerMojo
java.lang.Object
org.apache.maven.plugin.compiler.AbstractCompilerMojo
org.apache.maven.plugin.compiler.TestCompilerMojo
- All Implemented Interfaces:
- org.apache.maven.api.plugin.Mojo
@Mojo(name="testCompile",
      defaultPhase="test-compile")
public class TestCompilerMojo
extends AbstractCompilerMojo
Compiles application test sources.
 By default uses the javac compiler
 of the JDK used to execute Maven. This can be overwritten through Toolchains
 or parameter 
AbstractCompilerMojo.compilerId.- Since:
- 2.0
- Author:
- Jason van Zyl
- See Also:
- 
Field SummaryFields inherited from class org.apache.maven.plugin.compiler.AbstractCompilerMojoannotationProcessorPaths, annotationProcessorPathsUseDepMgmt, annotationProcessors, artifactManager, basedir, buildDirectory, compilerArgs, compilerArgument, compilerId, compilerManager, compilerReuseStrategy, compilerVersion, createMissingPackageInfoClass, debug, enablePreview, encoding, executable, failOnError, failOnWarning, fileExtensions, forceLegacyJavacApi, fork, implicit, jdkToolchain, logger, maxmem, meminitial, messageBuilderFactory, mojoStatusPath, optimize, outputTimestamp, parameters, proc, project, projectManager, PS, release, session, showCompilationChanges, showDeprecation, showWarnings, skipMultiThreadWarning, source, staleMillis, target, toolchainManager, useIncrementalCompilation, verbose
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidexecute()protected Stringprotected Stringprotected Pathprotected Pathprotected Stringprotected Stringprotected org.codehaus.plexus.compiler.util.scan.SourceInclusionScannergetSourceInclusionScanner(int staleMillis) protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScannergetSourceInclusionScanner(String inputFileEnding) protected Stringprotected booleanprotected voidpreparePaths(Set<Path> sourceFiles) Methods inherited from class org.apache.maven.plugin.compiler.AbstractCompilerMojogetBuildStartTime, getLog, getModuleDeclaration, getProject, getRequestThreadCount, getToolchain, isDependencyChanged, setRelease, setTarget
- 
Constructor Details- 
TestCompilerMojopublic TestCompilerMojo()
 
- 
- 
Method Details- 
executepublic void execute() throws org.apache.maven.api.plugin.MojoException- Specified by:
- executein interface- org.apache.maven.api.plugin.Mojo
- Overrides:
- executein class- AbstractCompilerMojo
- Throws:
- org.apache.maven.api.plugin.MojoException
 
- 
getCompileSourceRoots- Specified by:
- getCompileSourceRootsin class- AbstractCompilerMojo
 
- 
getPathElementsprotected Map<String,org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor> getPathElements()- Specified by:
- getPathElementsin class- AbstractCompilerMojo
 
- 
getClasspathElements- Specified by:
- getClasspathElementsin class- AbstractCompilerMojo
 
- 
getModulepathElements- Specified by:
- getModulepathElementsin class- AbstractCompilerMojo
 
- 
getOutputDirectory- Specified by:
- getOutputDirectoryin class- AbstractCompilerMojo
 
- 
preparePaths- Specified by:
- preparePathsin class- AbstractCompilerMojo
 
- 
getSourceInclusionScannerprotected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis) - Specified by:
- getSourceInclusionScannerin class- AbstractCompilerMojo
 
- 
getSourceInclusionScannerprotected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(String inputFileEnding) - Specified by:
- getSourceInclusionScannerin class- AbstractCompilerMojo
 
- 
getSource- Specified by:
- getSourcein class- AbstractCompilerMojo
 
- 
getTarget- Specified by:
- getTargetin class- AbstractCompilerMojo
 
- 
getRelease- Specified by:
- getReleasein class- AbstractCompilerMojo
 
- 
getCompilerArgument- Specified by:
- getCompilerArgumentin class- AbstractCompilerMojo
 
- 
getGeneratedSourcesDirectory- Specified by:
- getGeneratedSourcesDirectoryin class- AbstractCompilerMojo
 
- 
getDebugFileName- Specified by:
- getDebugFileNamein class- AbstractCompilerMojo
 
- 
isTestCompileprotected boolean isTestCompile()- Overrides:
- isTestCompilein class- AbstractCompilerMojo
 
- 
getIncludes- Specified by:
- getIncludesin class- AbstractCompilerMojo
 
- 
getExcludes- Specified by:
- getExcludesin class- AbstractCompilerMojo
 
 
-