ch.fortysix.maven.plugin.postaman
Class MailSenderMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.gmaven.mojo.GroovyMojo
ch.fortysix.maven.plugin.postaman.AbstractSenderMojo
ch.fortysix.maven.plugin.postaman.MailSenderMojo
- All Implemented Interfaces:
- groovy.lang.GroovyObject, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class MailSenderMojo
- extends AbstractSenderMojo
- implements groovy.lang.GroovyObject
Sends a mail with optional attachments.
- 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 |
MailSenderMojo
public MailSenderMojo()
prepareMojo
protected boolean prepareMojo()
- nothing to prepare
- 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
collectMails
public List collectMails()
convertToFileList
public List convertToFileList(String dir,
String[] relativeFiles)
- Prepends the given list of file paths with the directory and creates returns the resulting files in a collection.
- Parameters:
dir - the directoryrelativeFiles - files relative to the given directory
- Returns:
- a list of files
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.