ch.fortysix.maven.plugin.postaman.surfire
Class SurefireMailMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.gmaven.mojo.GroovyMojo
ch.fortysix.maven.plugin.postaman.AbstractSenderMojo
ch.fortysix.maven.plugin.postaman.surfire.SurefireMailMojo
- All Implemented Interfaces:
- groovy.lang.GroovyObject, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class SurefireMailMojo
- extends AbstractSenderMojo
- implements groovy.lang.GroovyObject
Sends mails based on surefire (test) results.
- Author:
- Domi
| Fields inherited from class org.codehaus.gmaven.mojo.GroovyMojo |
__timeStamp, __timeStamp__239_neverHappen1260015629891, sanitizeErrors |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class ch.fortysix.maven.plugin.postaman.AbstractSenderMojo |
execute, getFailonerror, getFrom, getHtmlMessage, getHtmlMessageFile, getMailAltConfig, getMailcontenttype, getMailhost, getMailpassword, getMailport, getMailSender, getMailssl, getMailuser, getMultipartSupported, getOutputDirectory, getProject, getReceivers, getSession, getSkip, getSourceEncoding, getSubject, getTextMessage, getTextMessageFile, isFailonerror, isMailAltConfig, isMailssl, isMultipartSupported, isSkip, setFailonerror, setFrom, setHtmlMessage, setHtmlMessageFile, setMailAltConfig, setMailcontenttype, setMailhost, setMailpassword, setMailport, setMailSender, setMailssl, setMailuser, setMultipartSupported, setOutputDirectory, setProject, setReceivers, setSession, setSkip, setSourceEncoding, setSubject, setTextMessage, setTextMessageFile |
| Methods inherited from class org.codehaus.gmaven.mojo.GroovyMojo |
afterExecute, beforeExecute, fail, fail, getAnt |
| 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 |
SurefireMailMojo
public SurefireMailMojo()
getReportFilePattern
public String getReportFilePattern()
setReportFilePattern
public void setReportFilePattern(String value)
getGroovyCondition
public String getGroovyCondition()
setGroovyCondition
public void setGroovyCondition(String value)
getTestReportsDirectory
public File getTestReportsDirectory()
setTestReportsDirectory
public void setTestReportsDirectory(File value)
getSurefireReportHtml
public File getSurefireReportHtml()
setSurefireReportHtml
public void setSurefireReportHtml(File value)
prepareMojo
protected boolean prepareMojo()
- Description copied from class:
AbstractSenderMojo
- prepare the mojo and tell whether the execution should be triggered or not
- Specified by:
prepareMojo in class AbstractSenderMojo
executeMojo
public void executeMojo()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Description copied from class:
AbstractSenderMojo
- Execute the mojo
- Specified by:
executeMojo in class AbstractSenderMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
createMail
public Map createMail(List suiteReports)
- create the mail to be send/reported.
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass in interface groovy.lang.GroovyObject- Overrides:
getMetaClass in class AbstractSenderMojo
setMetaClass
public void setMetaClass(groovy.lang.MetaClass metaClass)
- Specified by:
setMetaClass in interface groovy.lang.GroovyObject- Overrides:
setMetaClass in class AbstractSenderMojo
invokeMethod
public Object invokeMethod(String name,
Object args)
- Specified by:
invokeMethod in interface groovy.lang.GroovyObject- Overrides:
invokeMethod in class AbstractSenderMojo
getProperty
public Object getProperty(String name)
- Specified by:
getProperty in interface groovy.lang.GroovyObject- Overrides:
getProperty in class AbstractSenderMojo
setProperty
public void setProperty(String name,
Object value)
- Specified by:
setProperty in interface groovy.lang.GroovyObject- Overrides:
setProperty in class AbstractSenderMojo
Copyright © 2009-2011. All Rights Reserved.