continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r708339 - /continuum/branches/continuum-1.2.x/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
Date Mon, 27 Oct 2008 21:53:38 GMT
Author: olamy
Date: Mon Oct 27 14:53:38 2008
New Revision: 708339

URL: http://svn.apache.org/viewvc?rev=708339&view=rev
Log:
fix multiple notifiers element declaration in pom

Modified:
    continuum/branches/continuum-1.2.x/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java

Modified: continuum/branches/continuum-1.2.x/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.2.x/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java?rev=708339&r1=708338&r2=708339&view=diff
==============================================================================
--- continuum/branches/continuum-1.2.x/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
(original)
+++ continuum/branches/continuum-1.2.x/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
Mon Oct 27 14:53:38 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 );



Mime
View raw message