continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r327219 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
Date Fri, 21 Oct 2005 16:36:04 GMT
Author: evenisse
Date: Fri Oct 21 09:36:00 2005
New Revision: 327219

URL: http://svn.apache.org/viewcvs?rev=327219&view=rev
Log:
define buildHost to localhost if InetAddress.getLocalHost().getHostName() return null

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

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java?rev=327219&r1=327218&r2=327219&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
Fri Oct 21 09:36:00 2005
@@ -126,6 +126,11 @@
             InetAddress address = InetAddress.getLocalHost();
 
             buildHost = StringUtils.clean( address.getHostName() );
+
+            if ( buildHost == null )
+            {
+                buildHost = "localhost";
+            }
         }
         catch ( UnknownHostException ex )
         {



Mime
View raw message