org.apache.geronimo.mavenplugins.testsuite
Class ResultsSummaryMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.pluginsupport.MojoSupport
          extended by org.apache.geronimo.mavenplugins.testsuite.ResultsSummaryMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

public class ResultsSummaryMojo
extends org.codehaus.mojo.pluginsupport.MojoSupport

Download the ResultsSummary.html file from the site url. Update it with success rate (in percentage) of the results from each of the top level testsuites. Upload the file back again.


Field Summary
protected  org.codehaus.mojo.pluginsupport.ant.AntHelper ant
           
protected  org.apache.maven.project.MavenProject project
          The maven project.
protected  org.apache.maven.settings.Settings settings
          The build settings.
 
Fields inherited from class org.codehaus.mojo.pluginsupport.MojoSupport
container, log
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ResultsSummaryMojo()
           
 
Method Summary
 String computePercentage(int tests, int errors, int failures, int skipped)
          compute percentage
protected  void doExecute()
          called by execute from super
protected  org.apache.maven.project.MavenProject getProject()
           
protected  void init()
           
 
Methods inherited from class org.codehaus.mojo.pluginsupport.MojoSupport
contextualize, createArtifact, execute, getArtifact, getArtifactFactory, getArtifactRepository, getArtifactResolver, getProjectArtifacts, getProjectArtifacts, getProjectArtifacts, resolveArtifact, resolveArtifact
 
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

ant

protected org.codehaus.mojo.pluginsupport.ant.AntHelper ant

project

protected org.apache.maven.project.MavenProject project
The maven project.


settings

protected org.apache.maven.settings.Settings settings
The build settings.

Constructor Detail

ResultsSummaryMojo

public ResultsSummaryMojo()
Method Detail

getProject

protected org.apache.maven.project.MavenProject getProject()
Overrides:
getProject in class org.codehaus.mojo.pluginsupport.MojoSupport

init

protected void init()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Overrides:
init in class org.codehaus.mojo.pluginsupport.MojoSupport
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

doExecute

protected void doExecute()
                  throws Exception
called by execute from super

Overrides:
doExecute in class org.codehaus.mojo.pluginsupport.MojoSupport
Throws:
Exception

computePercentage

public String computePercentage(int tests,
                                int errors,
                                int failures,
                                int skipped)
compute percentage



Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.