ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurent Perez <hak...@gmail.com>
Subject mail task does not work under ant 1.7.+
Date Wed, 10 Jun 2009 10:22:43 GMT
Hi

When using encoding=mime, the mail task fails under ant 1.7.0, 1.7.1,
under jdk5 or jdk6. It works under ant 1.6.5.

The message is :
java.lang.NoSuchFieldError: headers at
org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:206)
I am using the latest mail and activation jars from sun web site.

The documentation at http://ant.apache.org/manual/CoreTasks/mail.html
mentions arbritrary mail headers, without samples - I've tried
<headers>, it does not work -, it also says that <attachments> is
supported under ant 1.7.0, but it is not : "release.xml:119: The
<mail> type doesn't support the nested "attachments" element.

Is the mail task just "broken" under ant 1.7 ?

thanks if you can help
laurent

-- 
<a href="http://in-pocket.blogspot.com">http://in-pocket.blogspot.com
- Mobile world, technology and more</a>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message