Browse Source

Create an ampty message object instead of throwing an exception and be backwards compatible.

Submitted by: Rob Oxpring (roxspring@yahoo.com)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271169 13f79535-47bb-0310-9956-ffa450edef68
master
Magesh Umasankar 23 years ago
parent
commit
c0d5d3b13b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java View File

@@ -70,7 +70,7 @@ import org.apache.tools.ant.types.FileSet;
* 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 @@ public class EmailTask
// 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


Loading…
Cancel
Save