org.apache.maven.plugin.announcement
Class AnnouncementMailMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.announcement.AnnouncementMailMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class AnnouncementMailMojo
- extends org.apache.maven.plugin.AbstractMojo
Goal which sends an announcement through email.
- Version:
- $Id: AnnouncementMailMojo.java 424723 2006-07-23 12:26:18Z fgiust $
- Author:
- aramirez@exist.com
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
AnnouncementMailMojo
public AnnouncementMailMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
sendMessage
protected void sendMessage()
throws org.apache.maven.plugin.MojoExecutionException
- Send the email
- Throws:
org.apache.maven.plugin.MojoExecutionException
isTextFileExisting
protected boolean isTextFileExisting(java.lang.String fileName)
readAnnouncement
public java.io.FileReader readAnnouncement(java.lang.String fileName)
throws org.apache.maven.plugin.MojoExecutionException
- Read the announcement generated file
- Parameters:
fileName
- Accepts filename to be read.
- Returns:
- fileReader Return the FileReader.
- Throws:
org.apache.maven.plugin.MojoExecutionException
getFirstDevInfo
public java.lang.String[] getFirstDevInfo(java.util.List fromNames)
throws org.apache.maven.plugin.MojoExecutionException
- Retrieve the 1st name and email address found in the developers list
- Parameters:
fromNames
- Accepts List of developers.
- Returns:
- fromAddress Returns the 1st email address found in the list.
- Throws:
org.apache.maven.plugin.MojoExecutionException
getSmtpHost
public java.lang.String getSmtpHost()
setSmtpHost
public void setSmtpHost(java.lang.String smtpHost)
getSmtpPort
public int getSmtpPort()
setSmtpPort
public void setSmtpPort(int smtpPort)
getSubject
public java.lang.String getSubject()
setSubject
public void setSubject(java.lang.String subject)
getFrom
public java.util.List getFrom()
setFrom
public void setFrom(java.util.List from)
getProject
public org.apache.maven.project.MavenProject getProject()
setProject
public void setProject(org.apache.maven.project.MavenProject project)
getToAddresses
public java.util.List getToAddresses()
setToAddresses
public void setToAddresses(java.util.List toAddresses)
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.