Package org.apache.maven.plugin.compiler
Class TestCompilerMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.compiler.AbstractCompilerMojo
org.apache.maven.plugin.compiler.TestCompilerMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="testCompile",
defaultPhase=TEST_COMPILE,
threadSafe=true,
requiresDependencyResolution=TEST)
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 Summary
Fields inherited from class org.apache.maven.plugin.compiler.AbstractCompilerMojo
compilerArgs, compilerArgument, compilerArguments, PS, release, source, targetFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected Stringprotected Stringprotected Fileprotected Fileprotected 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<File> sourceFiles) Methods inherited from class org.apache.maven.plugin.compiler.AbstractCompilerMojo
getBuildStartTime, getModuleDeclaration, getProject, getRequestThreadCount, getToolchain, isDependencyChanged, setRelease, setTargetMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
TestCompilerMojo
public TestCompilerMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, CompilationFailureException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractCompilerMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionCompilationFailureException
-
getCompileSourceRoots
- Specified by:
getCompileSourceRootsin classAbstractCompilerMojo
-
getPathElements
protected Map<String,org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor> getPathElements()- Specified by:
getPathElementsin classAbstractCompilerMojo
-
getClasspathElements
- Specified by:
getClasspathElementsin classAbstractCompilerMojo
-
getModulepathElements
- Specified by:
getModulepathElementsin classAbstractCompilerMojo
-
getOutputDirectory
- Specified by:
getOutputDirectoryin classAbstractCompilerMojo
-
preparePaths
- Specified by:
preparePathsin classAbstractCompilerMojo
-
getSourceInclusionScanner
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis) - Specified by:
getSourceInclusionScannerin classAbstractCompilerMojo
-
getSourceInclusionScanner
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(String inputFileEnding) - Specified by:
getSourceInclusionScannerin classAbstractCompilerMojo
-
getSource
- Specified by:
getSourcein classAbstractCompilerMojo
-
getTarget
- Specified by:
getTargetin classAbstractCompilerMojo
-
getRelease
- Specified by:
getReleasein classAbstractCompilerMojo
-
getCompilerArgument
- Specified by:
getCompilerArgumentin classAbstractCompilerMojo
-
getCompilerArguments
- Specified by:
getCompilerArgumentsin classAbstractCompilerMojo
-
getGeneratedSourcesDirectory
- Specified by:
getGeneratedSourcesDirectoryin classAbstractCompilerMojo
-
getDebugFileName
- Specified by:
getDebugFileNamein classAbstractCompilerMojo
-
isTestCompile
protected boolean isTestCompile()- Overrides:
isTestCompilein classAbstractCompilerMojo
-
getIncludes
- Specified by:
getIncludesin classAbstractCompilerMojo
-
getExcludes
- Specified by:
getExcludesin classAbstractCompilerMojo
-