Sorry - I took my eye off the "backwards compatability" ball on this one, I
think the change to EmailTask below should fix it.

Was busy thinking about what it should do in the face of an absent message
rather than what the previous version did.

444  // a valid message is required
445  if( message == null )
446  {
447      throw new BuildException( "A message is required" );
448  }

Changing line 447 to the following should fix it, but I'm heading to bed
also so I haven't tried it.
447      message = new Message();

Cheers

Rob

> -----Original Message-----
> From: Stephane Bailliez [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 06, 2002 12:25 AM
> To: Ant Developers List
> Subject: Re: [SUBMIT] Refactor & combination of mail tasks
>
>
> ----- Original Message -----
> From: "Adam Murdoch" <[EMAIL PROTECTED]>
> [...]
>
> > This has been committed.  Thanks, Rob.
>
> Just a note, there is a backward incompatibility somewhere, did not go
> deeper, it's time for me to go to bed, sorry :-(
> I ran the audit/metric/coverage with an Ant snapshot and my Ant
> build failed
> because I was using mail this way:
>
>      <mail from="${mail.from}" tolist="${mail.to}" mailhost="${mail.host}"
>       subject="${mail.subject}" files="${mail.file}"/>
>
>
> sendmail:
>      [mail] Failed to initialise MIME mail
>      [mail] Failed to send email
>
> BUILD FAILED
> D:\projects\audit\build.xml:127: A message is required
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to