ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Twiggs, Glenn" <Glenn_Twi...@bmc.com>
Subject [SUBMIT] SendMail task
Date Mon, 28 Aug 2000 21:22:57 GMT
Attached is code for a SendMail task and a diff for defaults.properties. I
hope this task can be useful to others - I've gotten very attached to it.
Here is an example usage:

	<target name="finish" unless="${build.failed}">
		<sendmail
			from="build@mycompany.com"
			toList="build-list@mycompany.com,
dist-list@mycompany.com"
			subject="Build ${build.id} : OK"
			files="${changes.txt}, ${build.log}" />
	</target>

There are a few cleanup items that I would like to get to:

* replace toList attribute with "to" subelements.
* replace files attribute with "file" subelements, and send these files as
attachments. Currently, the text from the file is written in the body of the
mail message.

Thanks!

Glenn.


Mime
View raw message