Reputation: 6167
I'm trying to run the ant mail task and the script works fine in my cygwin but when I move it over to ubuntu I get:
BUILD FAILED
/home/admin/test/build.xml:22: mail doesn't support the "enableStartTLS" attribute
Then I removed that attribute and got:
[mail] Failed to initialize MIMI mail: javax/mail/MessagingException
I was wondering where I can find some sort of log or force a log somehow. Any ideas? Here is the ant task:
<mail mailhost="smtp.gmail.com" user="####" password="####" enableStartTLS="true" subject="jMeter test results from nightly build.">
<from address="[email protected]"/>
<to address="[email protected]"/>
<message>This is an automated message containing results from the most recent discovery build.</message>
<attachments>
<fileset dir="${basedir}">
<include name="JMeter-Results*"/>
</fileset>
</attachments>
</mail>
Upvotes: 0
Views: 583
Reputation: 11
You need to have activation.jar and javax.mail.jar in ant/lib directory in order to execute the ant target
Upvotes: 1
Reputation: 21140
That first error message suggests that you have different versions of the mail task between Windows and Ubuntu. Run "ant -version" on both systems to check.
Make sure also when running Ant that you have $JAVA_HOME pointing to a full JDK installation, not just a JRE. askubuntu.com has plenty of info on how to install a JDK if you need help.
Upvotes: 0