org.terracotta.maven.plugins.tc
Class DsoLifecycleMojo

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
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractDsoRunMojo, DsoSurefireMojo

public abstract class DsoLifecycleMojo
extends AbstractDsoMojo


Nested Class Summary
 
Nested classes/interfaces inherited from class org.terracotta.maven.plugins.tc.AbstractDsoMojo
AbstractDsoMojo.CargoStartable, AbstractDsoMojo.CmdStartable, AbstractDsoMojo.Startable
 
Field Summary
protected  boolean overwriteBootjar
          Overwrite boot jar if already exist
protected  java.lang.String serverName
          Name of the DSO Server to start
protected  boolean spawnServer
          Start DSO Server in a separate java process
protected  boolean startServer
          Start DSO server before starting other goals, such as tC:run or tc:test
protected  boolean verbose
          Show verbose output from the boot jar tool
 
Fields inherited from class org.terracotta.maven.plugins.tc.AbstractDsoMojo
bootJar, classpathElements, config, CONTEXT_KEY_STARTABLES, debugPort, jvm, jvmargs, jvmdebug, localRepository, mode, modules, numberOfNodes, pluginArtifacts, processes, remoteRepositories, resolver, workingDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
DsoLifecycleMojo()
           
 
Method Summary
 void execute()
           
protected  boolean generateBootJar()
           
protected abstract  void onExecute()
           
protected  boolean startDsoServer()
           
protected  boolean 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

verbose

protected boolean verbose
Show verbose output from the boot jar tool


overwriteBootjar

protected boolean overwriteBootjar
Overwrite boot jar if already exist


spawnServer

protected boolean spawnServer
Start DSO Server in a separate java process


serverName

protected java.lang.String serverName
Name of the DSO Server to start


startServer

protected boolean startServer
Start DSO server before starting other goals, such as tC:run or tc:test

Constructor Detail

DsoLifecycleMojo

public DsoLifecycleMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

generateBootJar

protected boolean generateBootJar()

startDsoServer

protected boolean startDsoServer()

stopDsoServer

protected boolean stopDsoServer()

onExecute

protected abstract void onExecute()
                           throws org.apache.maven.plugin.MojoExecutionException,
                                  org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException


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