com.atlassian.maven.plugins.testharness
Class AbstractStartServiceMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.atlassian.maven.plugins.testharness.AbstractStartServiceMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
StartConfluenceMojo, StartJiraMojo

public abstract class AbstractStartServiceMojo
extends org.apache.maven.plugin.AbstractMojo

base class for service starting


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractStartServiceMojo()
           
 
Method Summary
protected abstract  void configureWebapp()
          does pre-deployment of Container config
 void execute()
           
 org.codehaus.cargo.util.AntUtils getAntUtils()
           
 Container getContainer()
           
 DependencyUtils getDependencyUtils()
           
protected abstract  java.lang.String[] getExtraClassPathElements()
          set of strings that will be added to the classpath for the application Container
 org.apache.maven.project.MavenProject getProject()
           
 Service getService()
           
abstract  java.lang.String getServiceName()
           
protected abstract  java.util.Map getSystemProperties()
          system properties to be set on the application Container
protected  void installDependencies()
           
 void setContainer(Container container)
           
 void setService(Service service)
           
 
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

AbstractStartServiceMojo

public AbstractStartServiceMojo()
Method Detail

getServiceName

public abstract java.lang.String getServiceName()

getExtraClassPathElements

protected abstract java.lang.String[] getExtraClassPathElements()
set of strings that will be added to the classpath for the application Container

Returns:

getSystemProperties

protected abstract java.util.Map getSystemProperties()
system properties to be set on the application Container

Returns:

configureWebapp

protected abstract void configureWebapp()
                                 throws org.apache.maven.plugin.MojoExecutionException
does pre-deployment of Container config

Throws:
org.apache.maven.plugin.MojoExecutionException

getProject

public org.apache.maven.project.MavenProject getProject()

getContainer

public Container getContainer()

setContainer

public void setContainer(Container container)

getService

public Service getService()

setService

public void setService(Service service)

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

installDependencies

protected void installDependencies()
                            throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getDependencyUtils

public DependencyUtils getDependencyUtils()

getAntUtils

public org.codehaus.cargo.util.AntUtils getAntUtils()


Copyright © 2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.