ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: ant task mail fails on jdk10
Date Mon, 02 Jul 2018 16:00:29 GMT
Thank you, Simon

On 2018-07-02, Simon IJskes - QCG wrote:

> As bugzilla is unreachable for now:

>     <target name="_testmail" >
>         <mail mailhost="mail" mailport="25" from="simon@qcg.nl"
> subject="Testemail"  >
>             <to address="simon@qcg.nl" />
>         </mail>
>     </target>

> $ JAVA_HOME=/usr/lib/jvm/java-8-oracle/
> ~/opt/apache-ant-1.10.4/bin/ant _testmail

> runs ok.

> _testmail:
>      [mail] Sending email: Testemail
>      [mail] Sent email with 0 attachments


> $ JAVA_HOME=/usr/lib/jvm/java-10-oracle/
> ~/opt/apache-ant-1.10.4/bin/ant _testmail

> _testmail:
>      [mail] Failed to send email: javax.activation.DataHandler

JAF has been removed from Java 10, so now you need to provide its
replacement https://github.com/javaee/activation when starting Ant.

I don't really think we need to change anything inside of Ant but should
document the fact and likely add something to the FAQ in addition to the
mail task's manual page.

Stefan

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


Mime
View raw message