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

Reply via email to