ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Murdoch" <adammurdoch...@yahoo.com>
Subject RE: Carriage returns in message using <mail>
Date Wed, 27 Feb 2002 11:21:06 GMT

Hi,

If you are using a recent nightly build of Ant, you can use a nested
<message> element:

<mail to=".." from="..">
  <message>
	Hello,
	Some spam.
  </message
</mail>

Might not be worth upgrading for, however.


Adam

> -----Original Message-----
> From: Eddie Bernard [mailto:ebernard@digitalthink.com]
> Sent: Wednesday, 27 February 2002 7:06 PM
> To: 'ant-user@jakarta.apache.org'
> Subject: Carriage returns in message using <mail>
>
>
> Does anyone know how to embed carriage returns in a message when using the
> <mail> task:
>
> Here's what I'm trying but doesn't work:
>
>   <target name="report-notification"
>           depends="copy-buildlog"
>           description="E-mail notification of build log and JUnit
> reports">
>     <echo message="Sending notification of build log and JUnit repor
> ts"/>
>     <mail from="foo@bar.com"
>           tolist="${email.list}"
>           subject="Results on nightly build"
>           mailhost="myserver"
>           messageMimeType="text/html"
>           message="All-
>
> The nightly build has completed.\n\n
>
> The build log can be viewed online at
> http://myserver/Projects/NightlyBuildResults/index.html. \n\n
>
> The JUnit results can be viewed online at
> http://pong.digitalthink.com:8675/Projects/NightlyBuildResults/JUn
> it/index.h
> tml. \n\n
>
> Please address ant questions to mailto:me@bar.com. "/>
>   </target>
>
> (Addresses and location modified to protect the innocent ;) ).
>
>
>
> Cheers!
> Eddie
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:ant-user-help@jakarta.apache.org>


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


Mime
View raw message