com.google.code.sbt
Class SBTTestCompileMojo

Package class diagram package SBTTestCompileMojo
java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.google.code.sbt.AbstractSBTCompileMojo
          extended by com.google.code.sbt.SBTTestCompileMojo
All Implemented Interfaces:
ContextEnabled, Mojo

@Mojo(name="testCompile",
      defaultPhase=TEST_COMPILE,
      requiresDependencyResolution=TEST)
public class SBTTestCompileMojo
extends AbstractSBTCompileMojo

Compile Scala and Java test sources

Since:
1.0.0
Author:
Grzegorz Slowikowski

Field Summary
 
Fields inherited from class com.google.code.sbt.AbstractSBTCompileMojo
COMPILER_INTEGRATION_ARTIFACT_ID, COMPILER_INTERFACE_ARTIFACT_ID, COMPILER_INTERFACE_CLASSIFIER, factory, javacOptions, localRepo, mavenProjectBuilder, project, reactorProjects, remoteRepos, resolver, SBT_GROUP_ID, SCALA_COMPILER_ARTIFACTID, SCALA_GROUPID, SCALA_LIBRARY_ARTIFACTID, scalacOptions, sourceEncoding, XSBTI_ARTIFACT_ID
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
SBTTestCompileMojo()
           
 
Method Summary
protected  File getAnalysisCacheFile()
          Returns incremental compilation analysis cache file.
protected  Map<File,File> getAnalysisCacheMap()
          Returns incremental compilation analyses map for reactor projects.
protected  List<String> getClasspathElements()
          Returns compilation classpath elements.
protected  List<String> getCompileSourceRoots()
          Returns compilation source roots.
protected  File getOutputDirectory()
          Returns output directory.
protected  void internalExecute()
          Actual compilation code, to be overridden.
 
Methods inherited from class com.google.code.sbt.AbstractSBTCompileMojo
defaultAnalysisCacheFile, defaultTestAnalysisCacheFile, execute
 
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

SBTTestCompileMojo

public SBTTestCompileMojo()
Method Detail

internalExecute

protected void internalExecute()
                        throws MojoExecutionException,
                               MojoFailureException,
                               IOException
Description copied from class: AbstractSBTCompileMojo
Actual compilation code, to be overridden.

Overrides:
internalExecute in class AbstractSBTCompileMojo
Throws:
MojoExecutionException - if an unexpected problem occurs.
MojoFailureException - if an expected problem (such as a compilation failure) occurs.
IOException - if an IO exception occurs.

getCompileSourceRoots

protected List<String> getCompileSourceRoots()
Description copied from class: AbstractSBTCompileMojo
Returns compilation source roots.

Specified by:
getCompileSourceRoots in class AbstractSBTCompileMojo
Returns:
source roots

getClasspathElements

protected List<String> getClasspathElements()
Description copied from class: AbstractSBTCompileMojo
Returns compilation classpath elements.

Specified by:
getClasspathElements in class AbstractSBTCompileMojo
Returns:
classpath elements

getOutputDirectory

protected File getOutputDirectory()
Description copied from class: AbstractSBTCompileMojo
Returns output directory.

Specified by:
getOutputDirectory in class AbstractSBTCompileMojo
Returns:
output directory

getAnalysisCacheFile

protected File getAnalysisCacheFile()
Description copied from class: AbstractSBTCompileMojo
Returns incremental compilation analysis cache file.

Specified by:
getAnalysisCacheFile in class AbstractSBTCompileMojo
Returns:
analysis cache file

getAnalysisCacheMap

protected Map<File,File> getAnalysisCacheMap()
Description copied from class: AbstractSBTCompileMojo
Returns incremental compilation analyses map for reactor projects.

Specified by:
getAnalysisCacheMap in class AbstractSBTCompileMojo
Returns:
analysis cache map


Copyright © 2013. All rights reserved.