You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by ev...@apache.org on 2005/12/05 21:32:14 UTC
svn commit: r354161 -
/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
Author: evenisse
Date: Mon Dec 5 12:32:10 2005
New Revision: 354161
URL: http://svn.apache.org/viewcvs?rev=354161&view=rev
Log:
Use NotificationException instead of ContinuumException
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=354161&r1=354160&r2=354161&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 Mon Dec 5 12:32:10 2005
@@ -194,22 +194,15 @@
// Generate and send email
// ----------------------------------------------------------------------
- try
+ if ( source.equals( ContinuumNotificationDispatcher.MESSAGE_ID_BUILD_COMPLETE ) )
{
- if ( source.equals( ContinuumNotificationDispatcher.MESSAGE_ID_BUILD_COMPLETE ) )
- {
- buildComplete( project, build, buildOutput, source, recipients, configuration );
- }
- }
- catch ( ContinuumException e )
- {
- throw new NotificationException( "Error while notifiying.", e );
+ buildComplete( project, build, buildOutput, source, recipients, configuration );
}
}
private void buildComplete( Project project, BuildResult build, String buildOutput, String source, Set recipients,
Map configuration )
- throws ContinuumException
+ throws NotificationException
{
// ----------------------------------------------------------------------
// Check if the mail should be sent at all
@@ -299,7 +292,7 @@
}
catch ( Exception e )
{
- throw new ContinuumException( "Error while generating mail contents.", e );
+ throw new NotificationException( "Error while generating mail contents.", e );
}
// ----------------------------------------------------------------------
@@ -430,7 +423,7 @@
}
private BuildResult getPreviousBuild( Project project, BuildResult currentBuild )
- throws ContinuumException
+ throws NotificationException
{
try
{