continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r330058 - in /maven/continuum/trunk: continuum-notifiers/continuum-notifier-irc/src/main/java/org/apache/maven/continuum/notification/irc/IrcContinuumNotifier.java continuum-web/src/main/resources/templates/screens/EditIrcNotifier.vm
Date Tue, 01 Nov 2005 13:55:15 GMT
Author: evenisse
Date: Tue Nov  1 05:55:09 2005
New Revision: 330058

URL: http://svn.apache.org/viewcvs?rev=330058&view=rev
Log:
[CONTINUUM-406] Support for registered nicks

Modified:
    maven/continuum/trunk/continuum-notifiers/continuum-notifier-irc/src/main/java/org/apache/maven/continuum/notification/irc/IrcContinuumNotifier.java
    maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/EditIrcNotifier.vm

Modified: maven/continuum/trunk/continuum-notifiers/continuum-notifier-irc/src/main/java/org/apache/maven/continuum/notification/irc/IrcContinuumNotifier.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-notifiers/continuum-notifier-irc/src/main/java/org/apache/maven/continuum/notification/irc/IrcContinuumNotifier.java?rev=330058&r1=330057&r2=330058&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-notifiers/continuum-notifier-irc/src/main/java/org/apache/maven/continuum/notification/irc/IrcContinuumNotifier.java
(original)
+++ maven/continuum/trunk/continuum-notifiers/continuum-notifier-irc/src/main/java/org/apache/maven/continuum/notification/irc/IrcContinuumNotifier.java
Tue Nov  1 05:55:09 2005
@@ -27,6 +27,7 @@
 import org.apache.maven.continuum.store.ContinuumStoreException;
 import org.codehaus.plexus.ircbot.IrcBot;
 import org.codehaus.plexus.notification.NotificationException;
+import org.codehaus.plexus.util.StringUtils;
 
 import java.util.List;
 import java.util.Map;
@@ -119,6 +120,20 @@
         int port = Integer.parseInt( (String) configuration.get( "port" ) );
 
         String channel = (String) configuration.get( "channel" );
+
+        String login = (String) configuration.get( "nick" );
+
+        if ( !StringUtils.isEmpty( login ) )
+        {
+            ircClient.setLogin( login );
+        }
+
+        String fullName = (String) configuration.get( "fullName" );
+
+        if ( !StringUtils.isEmpty( fullName ) )
+        {
+            ircClient.setFullName( fullName );
+        }
 
         // ----------------------------------------------------------------------
         // Send message

Modified: maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/EditIrcNotifier.vm
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/EditIrcNotifier.vm?rev=330058&r1=330057&r2=330058&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/EditIrcNotifier.vm
(original)
+++ maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/EditIrcNotifier.vm
Tue Nov  1 05:55:09 2005
@@ -30,6 +30,18 @@
             </td>
           </tr>
           <tr>
+            <th>Nick Name</th>
+            <td>
+              <input type="text" name="nick" value="$notifier.configuration.nick" size="100"/>
+            </td>
+          </tr>
+          <tr>
+            <th>Full Name</th>
+            <td>
+              <input type="text" name="fullName" value="$notifier.configuration.fullName"
size="100"/>
+            </td>
+          </tr>
+          <tr>
             <th>Send on success</th>
             <td>
               <input type="checkbox" name="sendOnSuccess" #if( $notifier.sendOnSuccess
) checked="checked" #end/>



Mime
View raw message