continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r708342 - in /continuum/trunk: ./ continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java continuum-docs/src/site/xdoc/
Date Mon, 27 Oct 2008 21:58:37 GMT
Author: olamy
Date: Mon Oct 27 14:58:37 2008
New Revision: 708342

URL: http://svn.apache.org/viewvc?rev=708342&view=rev
Log:
merge -r708338:708339 from 1.2.x branch

Modified:
    continuum/trunk/   (props changed)
    continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
    continuum/trunk/continuum-docs/src/site/xdoc/   (props changed)

Propchange: continuum/trunk/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Mon Oct 27 14:58:37 2008
@@ -1 +1 @@
-/continuum/branches/continuum-1.2.x:690684,690689-690799,698449-698533,698817-698819,699529,700250,700273,700936,705894
+/continuum/branches/continuum-1.2.x:690684,690689-690799,698449-698533,698817-698819,699529,700250,700273,700936,705894,705910,708339

Modified: continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java?rev=708342&r1=708341&r2=708342&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
(original)
+++ continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
Mon Oct 27 14:58:37 2008
@@ -579,18 +579,15 @@
                         if ( StringUtils.isNotEmpty( addressField ) )
                         {
                             String[] addresses = StringUtils.split( addressField, "," );
-                            List<Address> recipients = new ArrayList<Address>();
                             for ( String address : addresses )
                             {
                                 // TODO: set a proper name
                                 InternetAddress to = new InternetAddress( address.trim()
);
 
                                 log.info( "Recipient: To '" + to + "'." );
-
-                                recipients.add( to );
+                                message.addRecipient( Message.RecipientType.TO, to );
                             }
-                            message.setRecipients( Message.RecipientType.TO,
-                                                   recipients.toArray( new Address[recipients.size()]
) );
+                            
                         }
 
                         String committerField = (String) notifier.getConfiguration().get(
COMMITTER_FIELD );

Propchange: continuum/trunk/continuum-docs/src/site/xdoc/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Mon Oct 27 14:58:37 2008
@@ -1,2 +1,2 @@
-/continuum/branches/continuum-1.2.x/continuum-docs/src/site/xdoc:698449-698533,698817-698819,699529,700250,700273,700936,705894
+/continuum/branches/continuum-1.2.x/continuum-docs/src/site/xdoc:698449-698533,698817-698819,699529,700250,700273,700936,705894,705910,708339
 /continuum/trunk/continuum-docs/src/site/xdoc:690494-690520



Mime
View raw message