ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Oxspring" <roxspr...@yahoo.com>
Subject RE: [SUBMIT] Refactor & combination of mail tasks
Date Wed, 06 Feb 2002 00:53:45 GMT
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:sbailliez@apache.org]
> 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" <adammurdoch_ml@yahoo.com>
> [...]
>
> > 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:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
>


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


--
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