? src/main/org/apache/maven/announcement/MailUtils.java
Index: plugin.jelly
===================================================================
RCS file: /home/cvspublic/maven-plugins/announcement/plugin.jelly,v
retrieving revision 1.11
diff -u -r1.11 plugin.jelly
--- plugin.jelly 22 Jul 2004 11:26:28 -0000 1.11
+++ plugin.jelly 3 Aug 2004 03:14:15 -0000
@@ -40,6 +40,17 @@
+
+
+
+
+
+
+
+
+
+
@@ -49,6 +60,8 @@
+
+
@@ -97,6 +110,13 @@
+
+
+
+
+
+
@@ -118,6 +138,35 @@
+
+
+
+
+ The SMTP server name must be specified using the maven.announcement.mail.server property
+ The From address must be specified using the maven.announcement.mail.from property or by ensuring that at least one developer in the POM has an email address specified
+ The To address must be specified using the maven.announcement.mail.to property
+
+
+
+
+ Sending mail using server "${maven.announcement.mail.server}", subject "${maven.announcement.mail.subject}"...
+ Sending from "${maven.announcement.mail.from}" to "${maven.announcement.mail.to}"...
+
+
+
+
+
+
+
+
+
+
+ Could not send message. Reason: ${result}
+
+
+
+
Index: plugin.properties
===================================================================
RCS file: /home/cvspublic/maven-plugins/announcement/plugin.properties,v
retrieving revision 1.11
diff -u -r1.11 plugin.properties
--- plugin.properties 22 Jul 2004 11:26:28 -0000 1.11
+++ plugin.properties 3 Aug 2004 03:14:15 -0000
@@ -33,3 +33,16 @@
# Stylesheet to use to generate the text announcement
maven.announcement.stylesheet.path = ${plugin.resources}/announcement.jsl
+
+# IP address or name of the SMTP server used to send an announcement email
+# maven.announcement.mail.server =
+
+# From address to use when sending an announcement email. If not defined,
+# the first email address found in the POM will be used.
+# maven.announcement.mail.from =
+
+# Comma-separated list of addresses to use when sending an announcement email.
+# maven.announcement.mail.to =
+
+# Mail subject to use when sending an announcement email.
+maven.announcement.mail.subject = [ANN] ${pom.name} %VERSION% released
Index: project.xml
===================================================================
RCS file: /home/cvspublic/maven-plugins/announcement/project.xml,v
retrieving revision 1.25
diff -u -r1.25 project.xml
--- project.xml 15 Jul 2004 19:19:48 -0000 1.25
+++ project.xml 3 Aug 2004 03:14:16 -0000
@@ -87,5 +87,15 @@
20030211.142705
http://jakarta.apache.org/commons/jelly/libs/xml/
+
+ commons-lang
+ 2.0
+ http://jakarta.apache.org/commons/lang/
+
+
+ commons-net
+ 1.2.1
+ http://jakarta.apache.org/commons/net/
+
Index: xdocs/changes.xml
===================================================================
RCS file: /home/cvspublic/maven-plugins/announcement/xdocs/changes.xml,v
retrieving revision 1.21
diff -u -r1.21 changes.xml
--- xdocs/changes.xml 22 Jul 2004 11:26:28 -0000 1.21
+++ xdocs/changes.xml 3 Aug 2004 03:14:16 -0000
@@ -25,6 +25,10 @@
+
+ Added new announcement:mail goal to automatically
+ send the generated announcement by email.
+
Added new optional maven.announcement.stylesheet.pathproperty
that defines what stylesheet to use to generate the text announcement.
Index: xdocs/goals.xml
===================================================================
RCS file: /home/cvspublic/maven-plugins/announcement/xdocs/goals.xml,v
retrieving revision 1.4
diff -u -r1.4 goals.xml
--- xdocs/goals.xml 2 Jul 2004 20:57:16 -0000 1.4
+++ xdocs/goals.xml 3 Aug 2004 03:14:16 -0000
@@ -48,6 +48,12 @@
found in changes.xml
+
+ | announcement:mail |
+
+ Send the generated announcement message by email.
+ |
+
Index: xdocs/properties.xml
===================================================================
RCS file: /home/cvspublic/maven-plugins/announcement/xdocs/properties.xml,v
retrieving revision 1.9
diff -u -r1.9 properties.xml
--- xdocs/properties.xml 22 Jul 2004 11:26:28 -0000 1.9
+++ xdocs/properties.xml 3 Aug 2004 03:14:16 -0000
@@ -1,4 +1,5 @@
+