org_scala_tools_maven
Class ScalaTestCompileMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org_scala_tools_maven.ScalaMojoSupport
          extended by org_scala_tools_maven.ScalaSourceMojoSupport
              extended by org_scala_tools_maven.ScalaCompilerSupport
                  extended by org_scala_tools_maven.ScalaTestCompileMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class ScalaTestCompileMojo
extends ScalaCompilerSupport

Compile Scala test source into test-classes. Corresponds roughly to testCompile in maven-compiler-plugin


Field Summary
protected  boolean skip
          Set this to 'true' to bypass unit tests entirely.
protected  File testOutputDir
          The directory in which to place test compilation output
protected  File testSourceDir
          The directory in which to find test scala source code
 
Fields inherited from class org_scala_tools_maven.ScalaCompilerSupport
ALL, loopSleep, MODIFIED_ONLY
 
Fields inherited from class org_scala_tools_maven.ScalaSourceMojoSupport
excludes, includes, sendJavaToScalac
 
Fields inherited from class org_scala_tools_maven.ScalaMojoSupport
args, checkMultipleScalaVersions, compilerPlugins, dependencies, displayCmd, factory, failOnMultipleScalaVersions, forceUseArgFile, fork, jvmArgs, localRepo, mavenProjectBuilder, project, remoteRepos, resolver, SCALA_GROUPID, SCALA_LIBRARY_ARTIFACTID, scalaClassName
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ScalaTestCompileMojo()
           
 
Method Summary
 void execute()
           
protected  List<String> getClasspathElements()
           
protected  List<org.apache.maven.model.Dependency> getDependencies()
           
protected  File getOutputDir()
           
protected  List<File> getSourceDirectories()
          Retreives the list of *all* root source directories.
 
Methods inherited from class org_scala_tools_maven.ScalaCompilerSupport
clearCompileErrors, compile, compile, doExecute, getFilesToCompile, hasCompileErrors
 
Methods inherited from class org_scala_tools_maven.ScalaSourceMojoSupport
findSourceWithFilters, findSourceWithFilters, initFilters, normalize, normalize
 
Methods inherited from class org_scala_tools_maven.ScalaMojoSupport
addCompilerPluginOptions, addToClasspath, addToClasspath, addToClasspath, checkScalaVersion, findScalaVersion, getEmptyScalaCommand, getScalaCommand, isJavaSupportedByCompiler, resolveArtifactDependencies, resolveDependencyArtifacts
 
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
 

Field Detail

skip

protected boolean skip
Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion.


testOutputDir

protected File testOutputDir
The directory in which to place test compilation output


testSourceDir

protected File testSourceDir
The directory in which to find test scala source code

Constructor Detail

ScalaTestCompileMojo

public ScalaTestCompileMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class ScalaMojoSupport
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

getClasspathElements

protected List<String> getClasspathElements()
                                     throws Exception
Specified by:
getClasspathElements in class ScalaCompilerSupport
Throws:
Exception

getDependencies

protected List<org.apache.maven.model.Dependency> getDependencies()
Overrides:
getDependencies in class ScalaMojoSupport

getOutputDir

protected File getOutputDir()
                     throws Exception
Specified by:
getOutputDir in class ScalaCompilerSupport
Throws:
Exception

getSourceDirectories

protected List<File> getSourceDirectories()
                                   throws Exception
Description copied from class: ScalaSourceMojoSupport
Retreives the list of *all* root source directories. We need to pass all .java and .scala files into the scala compiler

Specified by:
getSourceDirectories in class ScalaSourceMojoSupport
Throws:
Exception


Copyright © 2010-2011 Scala Tools. All Rights Reserved.