ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: issue with the Mail task
Date Tue, 07 May 2002 16:06:40 GMT
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" <SMallampati@erac.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
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="abc@xyz.com"
> tolist="smallampati@erac.com"
> 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: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