Bug 62621

Summary: running fetch.xml does not add all dependencies for mail task
Product: Ant Reporter: Simon IJskes <sijskes>
Component: Optional TasksAssignee: Ant Notifications List <notifications>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 1.10.5   
Target Milestone: 1.10.6   
Hardware: All   
OS: Linux   

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.