org.apache.maven.announcement
public class AnnouncementMailMojo extends AbstractMojo
UNKNOWN: announcement-mail Goal which sends the template thru email
| Method Summary | |
|---|---|
| void | execute() |
| String | getFile() |
| String | getFirstDevEmail(List fromNames)
Retrieve the 1st email address found in the list |
| List | getFrom() |
| MavenProject | getProject() |
| String | getSmtpHost() |
| int | getSmtpPort() |
| String | getSubject() |
| List | getToAddresses() |
| protected boolean | isTextFileExisting(String fileName) |
| FileReader | readAnnouncement(String fileName)
Read the announcement generated file |
| protected void | sendMessage(String recipient)
Send the email
|
| void | setFile(String file) |
| void | setFrom(List from) |
| void | setProject(MavenProject project) |
| void | setSmtpHost(String smtpHost) |
| void | setSmtpPort(int smtpPort) |
| void | setSubject(String subject) |
| void | setToAddresses(List toAddresses) |
Parameters: fromNames Accepts List of developers.
Returns: fromAddress Returns the 1st email address found in the list.
Parameters: fileName Accepts filename to be read.
Returns: fileReader Return the FileReader.
Parameters: recipient receiver of the email
Throws: MojoExecutionException