Bug 62621 - running fetch.xml does not add all dependencies for mail task
Summary: running fetch.xml does not add all dependencies for mail task
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Optional Tasks (show other bugs)
Version: 1.10.5
Hardware: All Linux
: P2 normal (vote)
Target Milestone: 1.10.6
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-13 19:45 UTC by Simon IJskes
Modified: 2018-08-14 04:36 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon IJskes 2018-08-13 19:45:59 UTC
after fresh install of binary distribution, and running fetch.xml, email task still fails.
 
* unzip bin dist file
* ant -f fetch.xml -Ddest=system
* run ant with mail task

function:
  <mail mailhost="mail" mailport="25" from="simon@qcg.nl" subject="Testemail"  >
            <to address="simon@qcg.nl" />
  </mail>

expected outcome:
  mail send

actual outcome:
build.xml:6: java.lang.NoClassDefFoundError: 
com/sun/mail/util/FolderClosedIOException 

cause:
missing javax.mail-1.6.1.jar

workaround:
manually copy javax.mail-1.6.1.jar into lib directory

problem should be already fixed in nightly build.
Comment 1 Simon IJskes 2018-08-13 19:56:15 UTC
fix by Jaikiran Pai <jaikiran@apache.org> is ready for testing:

https://builds.apache.org/job/Ant_Nightly/lastSuccessfulBuild/artifact/
Comment 2 Simon IJskes 2018-08-13 20:08:09 UTC
Tested with nightly: apache-ant-1.10.6alpha, fix works.
Comment 3 Jaikiran Pai 2018-08-14 04:36:43 UTC
Fixed in both master and 1.9.x branches, so will be available in 1.10.6 and 1.9.14 releases.