org.terracotta.maven.plugins.tc
Class DsoSurefireMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.terracotta.maven.plugins.tc.AbstractDsoMojo
          extended by org.terracotta.maven.plugins.tc.DsoLifecycleMojo
              extended by org.terracotta.maven.plugins.tc.DsoSurefireMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class DsoSurefireMojo
extends DsoLifecycleMojo

Run Surefire/JUnit tests in multiple DSO-enabled processes (similar to tc:run). It also synchronizes these tests automatically.

See Also:
http://forge.terracotta.org/projects/tc-maven-plugin/surefire.html

Nested Class Summary
 
Nested classes/interfaces inherited from class org.terracotta.maven.plugins.tc.AbstractDsoMojo
AbstractDsoMojo.CargoStartable, AbstractDsoMojo.CmdStartable, AbstractDsoMojo.Startable
 
Field Summary
protected  org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
          Factory used to creates artifacts
 
Fields inherited from class org.terracotta.maven.plugins.tc.DsoLifecycleMojo
overwriteBootjar, serverName, spawnServer, startServer, verbose
 
Fields inherited from class org.terracotta.maven.plugins.tc.AbstractDsoMojo
bootJar, config, CONTEXT_KEY_STARTABLES, debugPort, jvm, jvmargs, jvmdebug, localRepository, mode, modules, numberOfNodes, pluginArtifacts, processes, remoteRepositories, resolver
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
DsoSurefireMojo()
           
 
Method Summary
 void execute()
           
 boolean isSkipExec()
           
protected  void onExecute()
           
protected  void processSystemProperties(boolean setInSystem)
           
 void setSkipExec(boolean skipExec)
           
 
Methods inherited from class org.terracotta.maven.plugins.tc.DsoLifecycleMojo
generateBootJar, startDsoServer, stopDsoServer
 
Methods inherited from class org.terracotta.maven.plugins.tc.AbstractDsoMojo
createCommandLine, createJvmArguments, createJvmArguments, createPluginClasspath, createPluginClasspathAsFile, createProjectClasspath, getAdditionalModules, getClientConfig, getJMXUrl, getModulesRepository, getServerConfig, getServerStatus, getStartables, getTerracottaArtifact, isCustomMode, quoteIfNeeded, resolveModuleArtifacts, resolveModuleArtifacts, setJvm, setJvmargs
 
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

artifactFactory

protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
Factory used to creates artifacts

Constructor Detail

DsoSurefireMojo

public DsoSurefireMojo()
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 DsoLifecycleMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

onExecute

protected void onExecute()
                  throws org.apache.maven.plugin.MojoExecutionException,
                         org.apache.maven.plugin.MojoFailureException
Specified by:
onExecute in class DsoLifecycleMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

processSystemProperties

protected void processSystemProperties(boolean setInSystem)

isSkipExec

public boolean isSkipExec()
Returns:
SurefirePlugin Returns the skipExec.

setSkipExec

public void setSkipExec(boolean skipExec)
Parameters:
skipExec - the skipExec to set


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.