continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r209798 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
Date Fri, 08 Jul 2005 14:47:16 GMT
Author: jvanzyl
Date: Fri Jul  8 07:47:15 2005
New Revision: 209798

URL: http://svn.apache.org/viewcvs?rev=209798&view=rev
Log:
o throw an exception if the configuration for a notifier is null, this will
  catch the existing <address/> only <ciManagement/> elements.

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java?rev=209798&r1=209797&r2=209798&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
Fri Jul  8 07:47:15 2005
@@ -22,6 +22,8 @@
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
+import java.util.Map;
+import java.util.HashMap;
 
 import org.apache.maven.artifact.repository.ArtifactRepository;
 import org.apache.maven.artifact.repository.ArtifactRepositoryFactory;
@@ -250,6 +252,11 @@
             }
 
             notifier.setType( projectNotifier.getType() );
+
+            if ( projectNotifier.getConfiguration() == null )
+            {
+                throw new MavenBuilderHelperException( "Notifier configuration cannot be
null." );
+            }
 
             notifier.setConfiguration( projectNotifier.getConfiguration() );
 



Mime
View raw message