BTW- I've experienced the same problem with Ant 1.4.1 as well.  I think this
is a problem that's been around for a while... just my 2 cents ;).

-----Original Message-----
From: Erik Hatcher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 9:07 AM
To: Ant Users List
Subject: Re: issue with the Mail task


I'd claim this as a bug (or at least a "it shouldn't really work this way).
Please file it in Bugzilla for us to address during the Ant 1.5 beta period.

    Erik

----- Original Message -----
From: "Mallampati, Suresh" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 07, 2002 11:41 AM
Subject: issue with the Mail task


> Hi,
> attached is a code snippet of my usage of the mail task. It looks like the
> property is evaluated and replaced by the value in the subject of the
mail.
> But its not evaluated in the message body. Is this the expected behaviour?
> Initially thought, was doing something wrong with the escape char '$'. So
> tried both '$' and '$$'.
>
> <snip - build.xml>
> <target name="email" depends="init">
> <mail mailhost="mysmtp1"
> subject="Build Report --
> ${ant.project.name}--$${result.javac.project}--${result.javac.project}"
> from="[EMAIL PROTECTED]"
> tolist="[EMAIL PROTECTED]"
> messagemimetype="text/plain"
> encoding="plain">
>
> <message>
> "Compilation of Classes -
> $${result.javac.project}
> Compilation of Classes -
> ${result.javac.project}"
> </message>
> </mail>
> </target>
> </snip>
>
> email-result:
>
> subject - Build Report -- Architecture--${result.javac.project}--success
> message: "Compilation of Classes -
> $${result.javac.project}
> Compilation of Classes -
> ${result.javac.project}"
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


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

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

Reply via email to