ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mallampati, Suresh" <SMallamp...@erac.com>
Subject issue with the Mail task
Date Tue, 07 May 2002 15:41:56 GMT
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>


Mime
View raw message