|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.mail.plugin.SendEmailMojo
public class SendEmailMojo
Send a email.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
Plugin.Packaging |
| Field Summary | |
|---|---|
protected boolean |
dryRun
A flag to test plugin but send nothing to redmine. |
protected String |
encoding
The encoding used to read and write files. |
protected org.apache.maven.project.MavenProject |
project
Dependance du projet. |
protected org.apache.maven.settings.Settings |
settings
Dependance du settings. |
protected boolean |
verbose
Un flag pour activer le mode verbeux. |
| Fields inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
skipAfterInitMessage |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
SendEmailMojo()
|
|
| Method Summary | |
|---|---|
protected ProjectJavamailMailSender |
createMailer()
|
protected org.codehaus.plexus.mailsender.MailMessage |
createMessage(String newsContent,
MailSender mailSender)
|
protected void |
doAction()
Do plugin action. |
org.apache.maven.project.MavenProject |
getProject()
|
protected boolean |
init()
Method to initialize the mojo before doing any concrete actions. |
protected boolean |
isExecutionRoot()
|
protected boolean |
isGoalSkip()
|
boolean |
isVerbose()
|
void |
setFrom(List<org.apache.maven.model.Developer> from)
|
void |
setMailSender(MailSender sender)
|
void |
setProject(org.apache.maven.project.MavenProject project)
|
void |
setToAddresses(List<String> toAddresses)
|
void |
setVerbose(boolean verbose)
|
| 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 |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.settings.Settings settings
protected boolean verbose
protected String encoding
protected boolean dryRun
| Constructor Detail |
|---|
public SendEmailMojo()
| Method Detail |
|---|
public org.apache.maven.project.MavenProject getProject()
public void setProject(org.apache.maven.project.MavenProject project)
public boolean isVerbose()
public void setVerbose(boolean verbose)
protected boolean init()
throws Exception
AbstractPluginAbstractPlugin.doAction() method.
init in class AbstractPlugintrue if mojo is well initialize and something has
to be done in the AbstractPlugin.doAction() method, false
otherwise.
Exception - if any
protected void doAction()
throws Exception
AbstractPluginAbstractPlugin.execute() invoke this method only and only if :
AbstractPlugin.checkPackaging() returns true.AbstractPlugin.init() returns true.
doAction in class AbstractPluginException - if anyprotected boolean isGoalSkip()
protected org.codehaus.plexus.mailsender.MailMessage createMessage(String newsContent,
MailSender mailSender)
throws org.codehaus.plexus.mailsender.MailSenderException
org.codehaus.plexus.mailsender.MailSenderExceptionprotected ProjectJavamailMailSender createMailer()
public void setMailSender(MailSender sender)
public void setFrom(List<org.apache.maven.model.Developer> from)
public void setToAddresses(List<String> toAddresses)
protected boolean isExecutionRoot()
isExecutionRoot in class AbstractPlugintrue if project is the root execution project
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||