org.apache.maven.plugin
Class TestCompilerMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.AbstractCompilerMojo
          extended by org.apache.maven.plugin.TestCompilerMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class TestCompilerMojo
extends AbstractCompilerMojo

Compiles application test sources.

Since:
2.0
Version:
$Id: TestCompilerMojo.html 816619 2012-05-08 13:09:26Z hboutemy $
Author:
Jason van Zyl
Is defined by the goal name:
testCompile
Is bound to the specified phase of the standard build lifecycle:
test-compile
Requires the dependencies in this specified scope:
test

Field Summary
 
Fields inherited from class org.apache.maven.plugin.AbstractCompilerMojo
compilerArgument, compilerArguments, source, target
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
TestCompilerMojo()
           
 
Method Summary
 void execute()
           
protected  List<String> getClasspathElements()
           
protected  String getCompilerArgument()
           
protected  Map<String,String> getCompilerArguments()
           
protected  List<String> getCompileSourceRoots()
           
protected  File getGeneratedSourcesDirectory()
           
protected  File getOutputDirectory()
           
protected  String getSource()
           
protected  SourceInclusionScanner getSourceInclusionScanner(int staleMillis)
           
protected  SourceInclusionScanner getSourceInclusionScanner(String inputFileEnding)
           
protected  String getTarget()
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCompilerMojo

public TestCompilerMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException,
                    CompilationFailureException
Specified by:
execute in interface Mojo
Overrides:
execute in class AbstractCompilerMojo
Throws:
MojoExecutionException
CompilationFailureException

getCompileSourceRoots

protected List<String> getCompileSourceRoots()
Specified by:
getCompileSourceRoots in class AbstractCompilerMojo

getClasspathElements

protected List<String> getClasspathElements()
Specified by:
getClasspathElements in class AbstractCompilerMojo

getOutputDirectory

protected File getOutputDirectory()
Specified by:
getOutputDirectory in class AbstractCompilerMojo

getSourceInclusionScanner

protected SourceInclusionScanner getSourceInclusionScanner(int staleMillis)
Specified by:
getSourceInclusionScanner in class AbstractCompilerMojo

getSourceInclusionScanner

protected SourceInclusionScanner getSourceInclusionScanner(String inputFileEnding)
Specified by:
getSourceInclusionScanner in class AbstractCompilerMojo

getSource

protected String getSource()
Specified by:
getSource in class AbstractCompilerMojo

getTarget

protected String getTarget()
Specified by:
getTarget in class AbstractCompilerMojo

getCompilerArgument

protected String getCompilerArgument()
Specified by:
getCompilerArgument in class AbstractCompilerMojo

getCompilerArguments

protected Map<String,String> getCompilerArguments()
Specified by:
getCompilerArguments in class AbstractCompilerMojo

getGeneratedSourcesDirectory

protected File getGeneratedSourcesDirectory()
Specified by:
getGeneratedSourcesDirectory in class AbstractCompilerMojo


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.