ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From umag...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/email EmailTask.java
Date Wed, 06 Feb 2002 01:26:00 GMT
umagesh     02/02/05 17:26:00

  Modified:    src/main/org/apache/tools/ant/taskdefs/email EmailTask.java
  Log:
  Create an ampty message object instead of throwing an exception and be backwards compatible.
  
  Submitted by: Rob Oxpring (roxspring@yahoo.com)
  
  Revision  Changes    Path
  1.5       +2 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java
  
  Index: EmailTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- EmailTask.java	6 Feb 2002 00:24:44 -0000	1.4
  +++ EmailTask.java	6 Feb 2002 01:26:00 -0000	1.5
  @@ -70,7 +70,7 @@
    * A task to send SMTP email. This is a refactoring of the SendMail and MimeMail
    * tasks such that both are within a single task.
    *
  - * @author Magesh Umasankar
  + * @author <a href="mailto:umagesh@apache.org">Magesh Umasankar</a>
    * @author glenn_twiggs@bmc.com
    * @author steve_l@iseran.com steve loughran
    * @author ehatcher@apache.org Erik Hatcher
  @@ -438,7 +438,7 @@
               // a valid message is required
               if( message == null )
               {
  -                throw new BuildException( "A message is required" );
  +                message = new Message();
               }
   
               // an address to send from is required
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message