continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r330659 - in /maven/continuum/trunk/continuum-notifiers/continuum-notifier-jabber: pom.xml src/main/java/org/apache/maven/continuum/notification/jabber/JabberContinuumNotifier.java
Date Thu, 03 Nov 2005 22:46:09 GMT
Author: evenisse
Date: Thu Nov  3 14:46:00 2005
New Revision: 330659

URL: http://svn.apache.org/viewcvs?rev=330659&view=rev
Log:
[CONTINUUM-421] allow a domain name different of host name

Modified:
    maven/continuum/trunk/continuum-notifiers/continuum-notifier-jabber/pom.xml
    maven/continuum/trunk/continuum-notifiers/continuum-notifier-jabber/src/main/java/org/apache/maven/continuum/notification/jabber/JabberContinuumNotifier.java

Modified: maven/continuum/trunk/continuum-notifiers/continuum-notifier-jabber/pom.xml
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-notifiers/continuum-notifier-jabber/pom.xml?rev=330659&r1=330658&r2=330659&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-notifiers/continuum-notifier-jabber/pom.xml (original)
+++ maven/continuum/trunk/continuum-notifiers/continuum-notifier-jabber/pom.xml Thu Nov  3
14:46:00 2005
@@ -16,7 +16,7 @@
     <dependency>
       <groupId>org.codehaus.plexus</groupId>
       <artifactId>plexus-jabber</artifactId>
-      <version>1.0-alpha-2</version>
+      <version>1.0-alpha-3-SNAPSHOT</version>
     </dependency>
   </dependencies>
 </project>

Modified: maven/continuum/trunk/continuum-notifiers/continuum-notifier-jabber/src/main/java/org/apache/maven/continuum/notification/jabber/JabberContinuumNotifier.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-notifiers/continuum-notifier-jabber/src/main/java/org/apache/maven/continuum/notification/jabber/JabberContinuumNotifier.java?rev=330659&r1=330658&r2=330659&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-notifiers/continuum-notifier-jabber/src/main/java/org/apache/maven/continuum/notification/jabber/JabberContinuumNotifier.java
(original)
+++ maven/continuum/trunk/continuum-notifiers/continuum-notifier-jabber/src/main/java/org/apache/maven/continuum/notification/jabber/JabberContinuumNotifier.java
Thu Nov  3 14:46:00 2005
@@ -80,6 +80,11 @@
     /**
      * @plexus.configuration
      */
+    private String imDomainName;
+
+    /**
+     * @plexus.configuration
+     */
     private boolean sslConnection;
 
     // ----------------------------------------------------------------------
@@ -177,7 +182,9 @@
 
         jabberClient.setPassword( getPassword( configuration ) );
 
-        jabberClient.setSslConnection( true );
+        jabberClient.setImDomainName( getImDomainName( configuration ) );
+
+        jabberClient.setSslConnection( isSslConnection( configuration ) );
 
         try
         {
@@ -269,6 +276,26 @@
         }
 
         return fromPassword;
+    }
+
+    private boolean isSslConnection( Map configuration )
+    {
+        if ( configuration.containsKey( "sslConnection" ) )
+        {
+            return Boolean.getBoolean( (String ) configuration.get( "sslConnection" ) );
+        }
+
+        return sslConnection;
+    }
+
+    private String getImDomainName( Map configuration )
+    {
+        if ( configuration.containsKey( "domainName" ) )
+        {
+            return (String) configuration.get( "domainName" );
+        }
+
+        return imDomainName;
     }
 
     private boolean isGroup( Map configuration )



Mime
View raw message