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 voidexecute()protected List<String>getClasspathElements()protected StringgetCompilerArgument()protected Map<String,String>getCompilerArguments()protected List<String>getCompileSourceRoots()protected StringgetDebugFileName()protected FilegetGeneratedSourcesDirectory()protected List<String>getModulepathElements()protected FilegetOutputDirectory()protected Map<String,JavaModuleDescriptor>getPathElements()protected StringgetRelease()protected StringgetSource()protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScannergetSourceInclusionScanner(int staleMillis)protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScannergetSourceInclusionScanner(String inputFileEnding)protected StringgetTarget()protected booleanisTestCompile()protected voidpreparePaths(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:
executein interfaceMojo- Overrides:
executein classAbstractCompilerMojo- Throws:
MojoExecutionExceptionCompilationFailureException
-
getCompileSourceRoots
protected List<String> getCompileSourceRoots()
- Specified by:
getCompileSourceRootsin classAbstractCompilerMojo
-
getPathElements
protected Map<String,JavaModuleDescriptor> getPathElements()
- Specified by:
getPathElementsin classAbstractCompilerMojo
-
getClasspathElements
protected List<String> getClasspathElements()
- Specified by:
getClasspathElementsin classAbstractCompilerMojo
-
getModulepathElements
protected List<String> getModulepathElements()
- Specified by:
getModulepathElementsin classAbstractCompilerMojo
-
getOutputDirectory
protected File getOutputDirectory()
- Specified by:
getOutputDirectoryin classAbstractCompilerMojo
-
preparePaths
protected void preparePaths(Set<File> sourceFiles)
- 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
protected String getSource()
- Specified by:
getSourcein classAbstractCompilerMojo
-
getTarget
protected String getTarget()
- Specified by:
getTargetin classAbstractCompilerMojo
-
getRelease
protected String getRelease()
- Specified by:
getReleasein classAbstractCompilerMojo
-
getCompilerArgument
protected String getCompilerArgument()
- Specified by:
getCompilerArgumentin classAbstractCompilerMojo
-
getCompilerArguments
protected Map<String,String> getCompilerArguments()
- Specified by:
getCompilerArgumentsin classAbstractCompilerMojo
-
getGeneratedSourcesDirectory
protected File getGeneratedSourcesDirectory()
- Specified by:
getGeneratedSourcesDirectoryin classAbstractCompilerMojo
-
getDebugFileName
protected String getDebugFileName()
- Specified by:
getDebugFileNamein classAbstractCompilerMojo
-
isTestCompile
protected boolean isTestCompile()
- Overrides:
isTestCompilein classAbstractCompilerMojo
-
-