org.apache.maven.announcement
Class AnnouncementMailMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.announcement.AnnouncementMailMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class AnnouncementMailMojo
- extends org.apache.maven.plugin.AbstractMojo
Maven Announcement mailer goal.
- 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(java.lang.String recipient)
throws org.apache.maven.plugin.MojoExecutionException
- Send the email
- Parameters:
recipient
- receiver of 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
getFirstDevEmail
public java.lang.String getFirstDevEmail(java.util.List fromNames)
throws org.apache.maven.plugin.MojoExecutionException
- Retrieve the 1st email address found in the 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)
getFile
public java.lang.String getFile()
setFile
public void setFile(java.lang.String file)
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 © {inceptionYear}-2008 null. All Rights Reserved.