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:
ContextEnabled
,Mojo
@Mojo(name="testCompile", defaultPhase=TEST_COMPILE, threadSafe=true, requiresDependencyResolution=TEST) public class TestCompilerMojo extends AbstractCompilerMojo
Compiles application test sources.- Since:
- 2.0
- Author:
- Jason van Zyl
-
-
Field Summary
-
Fields inherited from class org.apache.maven.plugin.compiler.AbstractCompilerMojo
compilerArgs, compilerArgument, compilerArguments, PS, release, source, target
-
-
Constructor Summary
Constructors Constructor Description TestCompilerMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
protected List<String>
getClasspathElements()
protected String
getCompilerArgument()
protected Map<String,String>
getCompilerArguments()
protected List<String>
getCompileSourceRoots()
protected String
getDebugFileName()
protected File
getGeneratedSourcesDirectory()
protected List<String>
getModulepathElements()
protected File
getOutputDirectory()
protected Map<String,JavaModuleDescriptor>
getPathElements()
protected String
getRelease()
protected String
getSource()
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner
getSourceInclusionScanner(int staleMillis)
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner
getSourceInclusionScanner(String inputFileEnding)
protected String
getTarget()
protected boolean
isTestCompile()
protected void
preparePaths(Set<File> sourceFiles)
-
Methods inherited from class org.apache.maven.plugin.compiler.AbstractCompilerMojo
convertToCompilerResult, getBuildStartTime, getProject, getRequestThreadCount, getToolchain, isDependencyChanged, setRelease, setTarget
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Method Detail
-
execute
public void execute() throws MojoExecutionException, CompilationFailureException
- Specified by:
execute
in interfaceMojo
- Overrides:
execute
in classAbstractCompilerMojo
- Throws:
MojoExecutionException
CompilationFailureException
-
getCompileSourceRoots
protected List<String> getCompileSourceRoots()
- Specified by:
getCompileSourceRoots
in classAbstractCompilerMojo
-
getPathElements
protected Map<String,JavaModuleDescriptor> getPathElements()
- Specified by:
getPathElements
in classAbstractCompilerMojo
-
getClasspathElements
protected List<String> getClasspathElements()
- Specified by:
getClasspathElements
in classAbstractCompilerMojo
-
getModulepathElements
protected List<String> getModulepathElements()
- Specified by:
getModulepathElements
in classAbstractCompilerMojo
-
getOutputDirectory
protected File getOutputDirectory()
- Specified by:
getOutputDirectory
in classAbstractCompilerMojo
-
preparePaths
protected void preparePaths(Set<File> sourceFiles)
- Specified by:
preparePaths
in classAbstractCompilerMojo
-
getSourceInclusionScanner
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis)
- Specified by:
getSourceInclusionScanner
in classAbstractCompilerMojo
-
getSourceInclusionScanner
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(String inputFileEnding)
- Specified by:
getSourceInclusionScanner
in classAbstractCompilerMojo
-
getSource
protected String getSource()
- Specified by:
getSource
in classAbstractCompilerMojo
-
getTarget
protected String getTarget()
- Specified by:
getTarget
in classAbstractCompilerMojo
-
getRelease
protected String getRelease()
- Specified by:
getRelease
in classAbstractCompilerMojo
-
getCompilerArgument
protected String getCompilerArgument()
- Specified by:
getCompilerArgument
in classAbstractCompilerMojo
-
getCompilerArguments
protected Map<String,String> getCompilerArguments()
- Specified by:
getCompilerArguments
in classAbstractCompilerMojo
-
getGeneratedSourcesDirectory
protected File getGeneratedSourcesDirectory()
- Specified by:
getGeneratedSourcesDirectory
in classAbstractCompilerMojo
-
getDebugFileName
protected String getDebugFileName()
- Specified by:
getDebugFileName
in classAbstractCompilerMojo
-
isTestCompile
protected boolean isTestCompile()
- Overrides:
isTestCompile
in classAbstractCompilerMojo
-
-